I have added the options for chromedriver for selenium testing in my project but i dont understand the appropriate methods for edgedriver. I have tried all the possibilities. Can someone help me out? Thankyou.
ChromeOptions options = new ChromeOptions();
options .addArguments("--start-maximized");
options .addArguments("--window-size=1920,900");
_chromeOptions.addArguments("--ignore-certificate-errors");
Its working fine for chromeOptions but I dont understand how to write for edge options.
EdgeOptions options = new EdgeOptions();
options.setCapability("window-size","1920*900");
options.setCapability("ignore-certificate-errors" , true);
DesiredCapabilities capabilities = DesiredCapabilities.edge();
options.merge(capabilities);
For edge Options since there is no addArguments function I tried with setCapability and atlast merged with DesiredCapabilities but it is not working