Below is the code to set gecko driver using DesiredCapabilities class. Syntax: tProperty("","Path to geckdriver.exe file") Įxample: tProperty("","D:\\Downloads\\GeckoDriver.exe") ĭesired Capabilities help Selenium to understand the browser name, version and operating system to execute the automated tests. Using DesiredCapabilities:įirst, set the system property for Gecko Driver. There are three different ways to initialize GeckoDriver. Location will be used later to instantiate the driver. Note the location where you extracted the driver.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |