You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: source/installation.rst
+32-34Lines changed: 32 additions & 34 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,46 +11,43 @@ Selenium Python bindings предоставляют простое API для р
11
11
получить доступ ко всем функциям WebDriver Selenium интуитивно понятным образом.
12
12
13
13
Selenium Python bindings предоставляют удобный API для обращения к таким WebDriver-ам Selenium
14
-
как Firefox, Internet Explorer, Chrome, Remote и т.д. Текущие поддерживаемые версии Python -
14
+
как Firefox, Internet Explorer, Chrome, Remote и т.д. Текущая поддерживаемая версия Python -
15
15
3.5 и выше.
16
16
17
-
В этой документации описана работа с API WebDriver для Selenium 2, API Selenium 1 или Selenium RC не описаны.
17
+
В этой документации описана работа с API WebDriver для Selenium 2 (API Selenium 1 или Selenium RC не описаны).
18
18
19
19
20
-
Скачивание привязок Python bindings для Selenium
21
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
20
+
Скачивание Python bindings для Selenium
21
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
22
22
23
-
24
-
Используйте команду `pip <https://pip.pypa.io/en/latest/installing/>`_ для установки пакета selenium. Python 3.6 has pip available in the `standard library
25
-
<https://docs.python.org/3.6/installing/index.html>`_. Using `pip`, you can
26
-
install selenium like this::
23
+
Используйте команду `pip <https://pip.pypa.io/en/latest/installing/>`_ для установки пакета selenium.
24
+
В Python 3.6 `pip` доступен в `стандартной библиотеке
25
+
<https://docs.python.org/3.6/installing/index.html>`_. С помощью `pip` вы можете установить selenium:
27
26
28
27
pip install selenium
29
28
30
-
You may consider using `virtualenv <http://www.virtualenv.org>`_ to create
31
-
isolated Python environments. Python 3 has `venv
32
-
<https://docs.python.org/3/library/venv.html>`_ which is almost the same as
29
+
Кроме того, можно использовать команду `virtualenv <http://www.virtualenv.org>`_ для создания
30
+
изолированного виртуального окружения Python. В Python 3 вы можете использовать команду `venv
31
+
<https://docs.python.org/3/library/venv.html>`_, которая практически эквивалентна
33
32
virtualenv.
34
33
35
-
You can also download Python bindings for Selenium from the `PyPI page for
36
-
selenium package <https://pypi.python.org/pypi/selenium>`_. and install
37
-
manually.
34
+
Python bindings for Selenium можно скачать отсюда: `PyPI page for
35
+
selenium package <https://pypi.python.org/pypi/selenium>`_. и установить вручную.
38
36
39
37
Drivers
40
38
~~~~~~~
41
39
42
-
Selenium requires a driver to interface with the chosen browser. Firefox, for
43
-
example, requires `geckodriver
44
-
<https://github.com/mozilla/geckodriver/releases>`_, which needs to be installed
45
-
before the below examples can be run. Make sure it's in your `PATH`, e. g.,
46
-
place it in `/usr/bin` or `/usr/local/bin`.
40
+
Для работы Selenium необходим интерфейс к выбранному браузеру. Например для Firefox требуется `geckodriver
41
+
<https://github.com/mozilla/geckodriver/releases>`_, который нужно установить
42
+
до запуска приведённых ниже примеров. Также удостоверьтесь, что путь к драйверу есть в переменной окружения `PATH`,
43
+
например в `/usr/bin` или `/usr/local/bin`.
47
44
48
-
Failure to observe this step will give you an error
0 commit comments