Skip to content

Commit

Permalink
Docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Vadim Petrov committed Mar 6, 2020
1 parent 0a757b1 commit 59db896
Show file tree
Hide file tree
Showing 7 changed files with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,44 @@
## Intro

YandexDriver is a WebDriver implementation derived from [ChromeDriver](https://sites.google.com/a/chromium.org/chromedriver/) and adapted by Yandex that enables programmatic automation of Yandex.Browser. It is a part of the [Selenium](http://code.google.com/p/selenium) project.

## Binaries

Binaries are available under [the releases tab](https://github.com/yandex/YandexDriver/releases).

## Desktop usage
1. Download binary file for your platform.
2. Example code for python on Windows
```python
from selenium import webdriver
options = webdriver.ChromeOptions()

binary_yandex_driver_file = 'yandexdriver.exe' # path to YandexDriver

driver = webdriver.Chrome(binary_yandex_driver_file, options=options)
driver.get('https://yandex.ru')
driver.quit()

```



## Android usage
1. Download binary file for host.
2. Attach android device with Yandex.Browser to host. Check by running adb devices.
3. Enable USB Web-pages debugging in Settings in Yandex.Browser.
4. Example code for python on Windows host
```python
from selenium import webdriver
options = webdriver.ChromeOptions()

binary_yandex_driver_file = 'yandexdriver.exe' # path to YandexDriver
yandex_browser_package_name = 'com.yandex.browser' # Release version of Yandex.Browser

options.add_experimental_option('androidPackage', yandex_browser_package_name)
driver = webdriver.Chrome(binary_yandex_driver_file, options=options)
driver.get('https://yandex.ru')
driver.quit()

```

Binary file removed linux/19.6.2/yandexdriver
Binary file not shown.
Binary file removed linux/19.9.3/yandexdriver
Binary file not shown.
Binary file removed mac/19.6.0/yandexdriver
Binary file not shown.
Binary file removed mac/19.9.0/yandexdriver
Binary file not shown.
Binary file removed win/19.10.2/yandexdriver.exe
Binary file not shown.
Binary file removed win/19.7.0/yandexdriver.exe
Binary file not shown.

0 comments on commit 59db896

Please sign in to comment.