Skip to content
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

Property webdriver.firefox.profile is ignored for gecko driver #885

Closed
realtsvk opened this issue Aug 15, 2017 · 7 comments
Closed

Property webdriver.firefox.profile is ignored for gecko driver #885

realtsvk opened this issue Aug 15, 2017 · 7 comments

Comments

@realtsvk
Copy link

I have custom firefox profile for special needs. Previously (with Serenity v. 1.1) I set property "webdriver.firefox.profile" in serenity.properties file, and firefox browser was started with this defined profile.

Today I updated Serenity to latest released version (1.5.3), also I set new firefox ESR (v 52.3.0) and latest gecko driver (v0.18.0).

The problem is that currently firefox with gecko driver is not using custom profile, which indicated in property "webdriver.firefox.profile" in serenity.properties file, instead it uses "firefox_profile=org.openqa.selenium.firefox.FirefoxProfile@aa10649}" (as it shown in the log).

Which property I need to set to use custom profile with gecko driver, or it is a bug?

@wakaleo
Copy link
Member

wakaleo commented Aug 15, 2017

The same property is still passed to the Firefox capabilities when the gecko driver is setup. This could be a geckodriver bug, e.g. SeleniumHQ/selenium#2645

@wakaleo
Copy link
Member

wakaleo commented Aug 17, 2017

Could you check if you can do this with raw Selenium? I suspect this is a Geckodriver bug.

@8saturday8
Copy link

8saturday8 commented Sep 19, 2017

Sorry for out of topic comment. But I am using Serenity with Cucumber, how can I customize Firefox driver in source code? And how to disable gecko debug log ? I am using Serenity 1.5.3 and my current class as below
@RunWith(CucumberWithSerenity.class) @CucumberOptions(features = "src/test/resources/features/...") public class DefinitionTestSuite { }

Thanks

@wakaleo
Copy link
Member

wakaleo commented Sep 19, 2017

You can use a provided driver (http://thucydides.info/docs/serenity-staging/#_custom_webdriver_implementations)

@wakaleo
Copy link
Member

wakaleo commented Nov 1, 2017

Closing due to lack of activity.

@wakaleo wakaleo closed this as completed Nov 1, 2017
@ShobaRamalingam15
Copy link

I am a using a custom firefox profile below is my code .
public class CustomDriver implements DriverSource {
@OverRide
public WebDriver newDriver() {
ProfilesIni allProfiles = new ProfilesIni();
FirefoxProfile testProfile = allProfiles.getProfile("default");
FirefoxOptions firefoxoptions = new FirefoxOptions();
firefoxoptions.setProfile(testProfile);
System.setProperty("webdriver.gecko.driver", "path to the geckodriver");
return new FirefoxDriver(firefoxoptions);
}
The above code is working fine in my local. I am not sure how to set the system properties to gecko driver when using Jenkins.

@wakaleo
Copy link
Member

wakaleo commented Apr 19, 2018

This is not a defect but a question - could you please post it on https://serenity-bdd.rocket.chat or on stackoverflow instead?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants