diff --git a/README.md b/README.md index a831b41..cfeb10c 100644 --- a/README.md +++ b/README.md @@ -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() + +``` + \ No newline at end of file diff --git a/linux/19.6.2/yandexdriver b/linux/19.6.2/yandexdriver deleted file mode 100644 index 1ab9e5b..0000000 Binary files a/linux/19.6.2/yandexdriver and /dev/null differ diff --git a/linux/19.9.3/yandexdriver b/linux/19.9.3/yandexdriver deleted file mode 100644 index 57c46ed..0000000 Binary files a/linux/19.9.3/yandexdriver and /dev/null differ diff --git a/mac/19.6.0/yandexdriver b/mac/19.6.0/yandexdriver deleted file mode 100644 index 4bc957a..0000000 Binary files a/mac/19.6.0/yandexdriver and /dev/null differ diff --git a/mac/19.9.0/yandexdriver b/mac/19.9.0/yandexdriver deleted file mode 100644 index 8537623..0000000 Binary files a/mac/19.9.0/yandexdriver and /dev/null differ diff --git a/win/19.10.2/yandexdriver.exe b/win/19.10.2/yandexdriver.exe deleted file mode 100644 index e4ba7f8..0000000 Binary files a/win/19.10.2/yandexdriver.exe and /dev/null differ diff --git a/win/19.7.0/yandexdriver.exe b/win/19.7.0/yandexdriver.exe deleted file mode 100644 index 67c2b30..0000000 Binary files a/win/19.7.0/yandexdriver.exe and /dev/null differ