-
Notifications
You must be signed in to change notification settings - Fork 136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to set chrome options for selenium HQ with QAFextended webdriver #428
Comments
This looks issues with custom implementation. please connect to your internal project support team who maintains implementation. |
I am facing same issue for edge in IE mode. Same code works fine without QAF in my laptop. |
QAF Version-3.1.0
Steps To Reproduce
Expected behavior
Tests should execute in selenium HQ
Actual behavior
Tests are failing since none of the pages are loaded in address bar, instead data: is displayed.
Is the issue reproducible on runner?
Test case sample
But now we want to use selenium HQ to execute our tests. So, updated below code to use selenium HQ URL
ConfigurationManager.getBundle().setProperty(ApplicationProperties.REMOTE_SERVER.key, Global.SELENIUM_HQ_URL);
And now we want to set few chrome options as well to fix few issues in tests. So, added below code. Even though we have set options as per documentation it is not setting options.
ConfigurationManager.getBundle().setProperty(ApplicationProperties.REMOTE_SERVER.key, Global.SELENIUM_GRID_URL);
ConfigurationManager.getBundle().setProperty(ApplicationProperties.DRIVER_ADDITIONAL_CAPABILITIES.key,"{'goog:chromeOptions':{'args':['--start-maximized','--ignore-certificate-errors','--auth-negotiate-delegate-whitelist=*dms-test.lfg.com','--start-maximized','--disable-web-security','--disable-gpu','--no-sandbox','--disable-dev-shm-usage','--allow-running-insecure-content','--log-level=3','--no-session-id',' --ignore-certificate-errors']}}");
new QAFExtendedWebDriver();
We tried the below alternative method, to set chrome options. It is setting the options(can verify manually in chrome browser) but not opening the URL when we execute the tests. Please see below screenshot.
return new QAFExtendedWebDriver(new URL(Global.SELENIUM_GRID_URL), new BrowserFactory().setChromeOptions()));
Attached logs and images
logs.txt
The text was updated successfully, but these errors were encountered: