-
1. Re: How to set browser capabilities in Arquilian
bmajsak Jul 19, 2016 2:56 PM (in response to parasvora1987)Please have a look in the official guide
I think you are looking for something like in arquillian.xml
<
extension
qualifier
=
"webdriver"
>
<
property
name
=
"chromeDriverBinary"
>path</
property
>
</
extension
>
-
2. Re: How to set browser capabilities in Arquilian
parasvora1987 Jul 20, 2016 1:59 AM (in response to bmajsak)Thanks for the response Majsak.
However, this is not what I intend to understand. Throwing more light in the discussion, please refer below code,
DesiredCapabilities caps = DesiredCapabilities.chrome();
ChromeOptions options = new ChromeOptions();
Map<String, Object> prefs = new HashMap<String, Object>();
prefs.put("download.default_directory", "/usr/local/path/to/download/directory");
options.setExperimentalOption("prefs", prefs);
caps.setCapability(ChromeOptions.CAPABILITY, options);
How can in achieve as above through Arquillian?
-
3. Re: How to set browser capabilities in Arquilian
bmajsak Jul 20, 2016 2:28 AM (in response to parasvora1987)I guess those are not available out of the box, however it shouldn't be so hard to implement them
This is the core of it https://github.com/arquillian/arquillian-extension-drone/blob/master/drone-webdriver/src/main/java/org/jboss/arquillian/drone/webdriver/factory/ChromeDriverFactory.java#L79
Please file an issue. If you feel like you could spend some time hacking on it I would more than happy to help you getting started.
-
4. Re: How to set browser capabilities in Arquilian
mjobanek Jul 22, 2016 9:47 AM (in response to bmajsak)Hi,
there was a possibility - using chrome.switches param, but this parameter is obsolete and was removed from the selenium implementation some time ago.
I've already created an issue for this: [ARQ-2037] Support additional browser capabilities for Chrome - JBoss Issue Tracker
Thanks for pointing this out. When I have a fix I'll let you know.
Best
Matous
-
5. Re: How to set browser capabilities in Arquilian
mjobanek Sep 2, 2016 8:05 AM (in response to mjobanek)Hi,
here is a PR: https://github.com/arquillian/arquillian-extension-drone/pull/65
Please take a look if it works in your case and if it is implemented in a suitable way.
Thanks.
-
6. Re: How to set browser capabilities in Arquilian
bmajsak Sep 29, 2016 2:15 PM (in response to mjobanek)New version of Drone has been released with support for custom chrome capabilities. Please give it a spin and report back!