简体   繁体   中英

Java Selenium WebDriver with Yandex

At the moment, I use Firefox as browser for my Java Application with Selenium. But Firefox is slow.

Is it possible to use Yandex as browser? Didn't find anything in Google. Does Selenium supports Yandex? For Chrome I need the .exe for using Chrome as browser. Is this possible with Yandex?

From what I recall, there is no WebDriver for the Yandex ("Яндекс") browser . In other words, there is no way to automate this browser through selenium.


Also, there are some performance tips and further links here:

Yandex browser can work with Selenium WebDriver using Operadriver.

System.setProperty("webdriver.opera.driver", "C:\\Users\\User\\IdeaProjects\\testselenium\\drivers\\operadriver.exe");
OperaOptions options = new OperaOptions();
options.setBinary("C:\\Users\\User\\AppData\\Local\\Yandex\\YandexBrowser\\Application\\browser.exe");
WebDriver driver = new OperaDriver(options);
driver.get("https://docs.seleniumhq.org");

This might be what you are looking for ( 4 years later :) ):

https://github.com/yandex/YandexDriver

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM