![]() If you are using latest version of Selenium, Start making Option classes instances of Capabilities which allows us to do like below :- ChromeOptions options = new ChromeOptions() We have to create an instance of ChromeOptions to set ChromeDriver specific capabilities and then pass the ChromeOptions object to the WebDriver/RemoteWebDriver constructor. Refer the JavaDoc link for .Īnd from Selenium v3.7.0, DesiredCapabilities was migrated to either MutableCapabilities or (preferably) ImmutableCapabilities. All the Option classes now extends MutableCapbilities. MutableCapabilities was introduced for the first time with Selenium v3.6.0 (Java Client). We can use ChromeOptions class to manage options specific to ChromeDriver. ChromeOptions class extends MutableCapabilities.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |