Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3f04f2a

Browse files
installation.rst -> ru
1 parent 914462e commit 3f04f2a

File tree

2 files changed

+34
-34
lines changed

2 files changed

+34
-34
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
*~
22
build
3+
.idea
4+
venv

source/installation.rst

Lines changed: 32 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -11,46 +11,43 @@ Selenium Python bindings предоставляют простое API для р
1111
получить доступ ко всем функциям WebDriver Selenium интуитивно понятным образом.
1212

1313
Selenium Python bindings предоставляют удобный API для обращения к таким WebDriver-ам Selenium
14-
как Firefox, Internet Explorer, Chrome, Remote и т.д. Текущие поддерживаемые версии Python -
14+
как Firefox, Internet Explorer, Chrome, Remote и т.д. Текущая поддерживаемая версия Python -
1515
3.5 и выше.
1616

17-
В этой документации описана работа с API WebDriver для Selenium 2, API Selenium 1 или Selenium RC не описаны.
17+
В этой документации описана работа с API WebDriver для Selenium 2 (API Selenium 1 или Selenium RC не описаны).
1818

1919

20-
Скачивание привязок Python bindings для Selenium
21-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
20+
Скачивание Python bindings для Selenium
21+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2222

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:
2726

2827
pip install selenium
2928

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>`_, которая практически эквивалентна
3332
virtualenv.
3433

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>`_. и установить вручную.
3836

3937
Drivers
4038
~~~~~~~
4139

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`.
4744

48-
Failure to observe this step will give you an error
45+
Пропустив этот шаг вы получите ошибку:
4946
`selenium.common.exceptions.WebDriverException: Message: 'geckodriver'
5047
executable needs to be in PATH.`
5148

52-
Other supported browsers will have their own drivers available. Links to some of
53-
the more popular browser drivers follow.
49+
У остальных поддерживаемых браузеров есть собственные драйверы. Ниже приведены ссылки на драйверы наиболее
50+
популярных браузеров:
5451

5552
+--------------+-----------------------------------------------------------------------+
5653
| **Chrome**: | https://sites.google.com/a/chromium.org/chromedriver/downloads |
@@ -62,35 +59,36 @@ the more popular browser drivers follow.
6259
| **Safari**: | https://webkit.org/blog/6900/webdriver-support-in-safari-10/ |
6360
+--------------+-----------------------------------------------------------------------+
6461

65-
For more information about driver installation, please refer the `official
66-
documentation
62+
Для подробной информации об установке драйверов обратитесь к `официальной
63+
документации
6764
<https://www.selenium.dev/documentation/en/webdriver/driver_requirements/>`_.
6865

69-
Detailed instructions for Windows users
66+
Инструкции для пользователей Windows
7067
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7168

7269
.. Note::
7370

74-
You should have an internet connection to perform this installation.
71+
Для установки требуется соединение с интернетом.
7572

76-
1. Install Python 3.6 using the `MSI available in python.org download page
73+
1. Установите Python 3.6 или старше, используя `файл MSI, доступный на странице download сайта python.org
7774
<http://www.python.org/download>`_.
7875

79-
2. Start a command prompt using the ``cmd.exe`` program and run the ``pip``
80-
command as given below to install `selenium`.
76+
2. Запустите командную строку (``cmd.exe``) и используйте команду ``pip``
77+
для установки `selenium` как показано ниже.
8178

8279
::
8380
8481
C:\Python35\Scripts\pip.exe install selenium
8582

86-
Now you can run your test scripts using Python. For example, if you have
87-
created a Selenium based script and saved it inside
88-
``C:\my_selenium_script.py``, you can run it like this::
83+
Теперь вы можете запускать тестовые скрипты на Python. Например, если у вас есть скрипт Selenium,
84+
расположенный в ``C:\my_selenium_script.py``, вы можете запустить его следующим образом:
85+
86+
::
8987

90-
C:\Python35\python.exe C:\my_selenium_script.py
88+
C:\Python35\python.exe C:\my_selenium_script.py
9189

9290

93-
Downloading Selenium server
91+
Скачивание сервера Selenium
9492
~~~~~~~~~~~~~~~~~~~~~~~~~~~
9593

9694
.. note::

0 commit comments

Comments
 (0)