如何使用Firefox驱动程序()

时间:2019-07-29 02:54:52

标签: java selenium selenium-webdriver qa

如果不使用system.sertproperty,则无法使用firefox driver()。 youtube中的一些教程他们不使用setproperty,我很好奇他们是怎么做到的

3 个答案:

答案 0 :(得分:0)

有些实现类似于WebDriverManager库,可以自动管理特定于浏览器的Web驱动程序。请参考 https://github.com/bonigarcia/webdrivermanager

答案 1 :(得分:0)

Selenium默认情况下支持firefox Webdriver,因此无论哪种方式都可以工作

答案 2 :(得分:0)

Selenium具有对Firefox浏览器的内置支持。

您需要做的只是写:

FirefoxDriver fd = new FirefoxDriver(); //this line will open the browser
相关问题