-
Notifications
You must be signed in to change notification settings - Fork 25
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
Set firefox options is not working #106
Comments
This isn't an issue of Codeception, Codeception just passes all capabilities to php-webdriver library, php-webdriver passes them to Selenium, Selenium passes them to Firefox. Either you are setting capabilities in incorrect way or thereis a bug somewhere (most likely in Marionette Driver). I did a quick search and all results suggest setting download options using Firefox Profile. I'm not familiar with Firefox profiles, but according to examples in documentation you have to create profile file and load it like this: capabilities:
unexpectedAlertBehaviour: 'accept'
firefox_profile: '~/firefox-profiles/codeception-profile.zip.b64' |
Tried that but it doesn't load the profile, I'm not the only one as you can see in the comment here Codeception/Codeception#1188 (comment). Any hint how this can be debugged why the profile is not loading? |
So the profile is sent to selenium, but no clue where to start there debugging the issue. |
I'm still on this one. How can I set the firefox profile in codeception as the example shows here for python https://stackoverflow.com/questions/18759762/firefox-selenium-webdriver-and-download-a-csv-file-automatically ? |
You can set firefox_profile to instance of FirefoxProfile class in by calling _capabilities method in Acceptance helper. |
Can you confirm that firefox_profile works in your suite yaml? When I pass it then it arrives at selnium but it still uses an empty one. |
I can't do that now. |
What are you trying to achieve?
Set download options in firefox similar to what we can do with chrome. See yaml below.
What do you get instead?
Options are empty in firefox browser when I open url about:config.
Details
composer show
)The text was updated successfully, but these errors were encountered: