-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Nightwatch doesnt work with firefox with profile #1543
Comments
Hi,
|
@wieta as far as I tested, the -P flag will only open the firefox profile manager if you dont pass a value, you should send something like my example in order to use a profile from a path or only send the name of the profile if your profile is in the firefox profiles path. |
Sorry for delay, yes you right, but this settings works for me, I've spent many time looking for working solution and found this one. Did you tried this solution ? |
@wieta I recently tried but is not working, here is the settings I used:
It pop ups the firefox profile manager even when I have the "Use the selected profile without asking at startup" option enabled. Adding the binary path will show an error message: Are you using selenium-server-standalone-3.4.0 and geckodriver v0.18.0? |
Ok i think i know your issue, i gave you solve to use docker with standalone firefox driver(i am not sure but may be it works also locally) let try something like this: in your nightwatch settings, in sections
This work for my locally enviroment "webdriver.firefox.profile" : "nightwatch" |
OMG. Its working with a profile that is set in the profile manager 😄 How can I set a path instead? It returns an error message when I try to set a path |
Great :D, i think you should run ff from binary
and the "Li90bXAvZmlyZWZveA==" is my profil location /tmp/firefox inside firefox dir i have somechars.nightwatch. Let me know if this solution will work |
Nope, still showing the profile manager, also for me the binary path has to include the executable file name (probably because windows 😩 ) Also I have tried with the profile folder itself (not his parent folder) and nothing, still showing the profile manager Absolute/relative path doesn't works too |
so when you run /firefox.exe -P you allways get prompt with choose profil ? I want to help you but i don't have any widnows pc at the moment:( Maybe better way is to run ff on docker container ? |
Yes, only with |
I found a workaround to use a premade firefox profile:
Example:
Example:
|
you can do -P profilename can run firefox in specific profile without manager opens In command line would be : if you don't have the specific profile, it opens profile manager. |
@raymonduui I was more interested in using a profile within a path, since my profile is commited into a git repository, so for each machine I dont have to install it manually. |
I had the same issue. Had gone mad for few days, different configurations, code etc...I almost gave up. So several days later frustrated to the max i tried downgrading from Selenium 3.5.0 to 3.4.0 trying to mimic @Frankusky comment above "Are you using selenium-server-standalone-3.4.0 and geckodriver v0.18.0?" and voila works like a charm, tests passes, browser opened up with the desired profile. With this working configuration if i return to Selenium 3.5.0 (currently latest ver) Firefox is opened up with anonymous profile (not the specified one, don't know why though) and It puts only the URL from the test and fails immediately on the first line (which in my test is |
@NightwatchTele - I just stumbled on this as well with Selenium 3.5 and the node-firefox-debug... went back to 3.4 and worked fine. Same issues with the waitForElementVisible / waitForElementPresent, setValue type methods. Regardless, thanks! you saved me a lot of time from pulling my hair out! BTW - for the 3.5.0 issue were you going to submit a bug for that? I can add any information to the bug report if that helps |
@Zechtitus well at least one of us left with more hair. Pardon for not replying sooner. I wanted to submit the issue to Selenium, however very soon after i posted this i went away for a while. Let me know if you have submitted the as i was planning on doing it (so we avoid double submission) |
@NightwatchTele - submitted nothing ;) go ahead! |
I'm facing again this issue due upgrade to Firefox Quantum 😞 My workaround stop working. Firefox version: 57.0.4 (64 bit) |
Try downgrading to Selenium 3.4.0 |
I remember that I was facing some issue with chrome and thats why I changed to that selenium version, however, reverting to 3.4.0 version its working fine at both browsers 😮 Thanks |
Is downgrading to an absolete firefox really a workaround though? |
I'm facing the exact same issue. Is there any solution that doesn't require to downgrade the version of Selenium or Firefox? |
@jbione seems like geckodriver issue to me. mozilla/geckodriver#1058 (comment) helped me to get back on track after a day of struggle |
Thanks so much @ajpetersons ! Awesome workaround. Working great on Selenium 3.14.0 and Geckodriver 0.21.0 😄 |
So I guess we can close this, not a Nightwatch issue? |
This issue has been automatically marked as stale because it has not had any recent activity. |
I have create a firefox profile that has a theme set (just for testing that indeed is using the specified profile). Im making firefox use that profile by passing the following configuration:
But when I use the profile, my nightwatch test will only open the browser but wont execute any other command. I need to load a profile to test some extensions behavior and to set a proxy.
The text was updated successfully, but these errors were encountered: