-
Notifications
You must be signed in to change notification settings - Fork 758
npm run firefox
does not set debugger server
#906
Comments
Update: it's working now. I use Firefox Dev Edition for my normal browsing, and the version of vanilla Firefox that I had installed was still at version 41. Updating that seems to have fixed it. |
Actually, no, false alarm. Firefox opens the TodoMVC example the way that the debugging version of Chrome does, but it's still not available on |
npm run firefox
throws "Missing 'marionetteProtocol' field in handshake" errornpm run firefox
browser is not available in the debugger tabs
The listen port likely isn't getting configured automatically. Try |
|
Odd shift+f2 is the devtools cli. Maybe you can open it from the tool button? |
@Zacqary should look like this at the bottom of the browser (I typed in the command.) |
@jasonLaster or @jlongster could you get some additional input here? I don't use this way of running Firefox because I only have m-c and run it as my daily driver 😄 |
Oh.
|
Sure. I believe there is an open issue fire Firefox driver leaving out At the moment you need to use the CLI option or shift f2.
|
npm run firefox
browser is not available in the debugger tabsnpm run firefox
does not set debugger server
I managed to get the driver to set preferences correctly, (confirmed by So I thought I would automate that part with selenium with key presses ( 😃 ) but turns out the functions we need for that aren't implement yet in gecko_driver. const driver = new webdriver.Builder()
.forBrowser('firefox')
.withCapabilities(firefoxOptions().toCapabilities().set('moz:firefoxOptions', {
prefs: {
"devtools.debugger.remote-port": 6080,
"devtools.chrome.enabled": true,
"devtools.debugger.prompt-connection": false,
"devtools.debugger.remote-enabled": true,
"devtools.debugger.remote-websocket": useWebSocket
}
}))
.build() Here's a link to the listen command's source code in mozilla-central in case anyone wants to dig deeper. |
Thanks. This is close to my heart. I'd love a fix for this. I think the challenge is to call gecko driver with the right -b params one This used to work for selenium 2 with non marionette gecko bindings, but I could easily be missing something here Mind explaining what you found a bit more On Sun, Nov 6, 2016 at 12:47 AM Jonathan Dupre [email protected]
|
By the way, it's totally in our control to change m-c if we have a good
|
gasp I actually have a fix for this now. 😮 edit: totally sending a pull request right now 😸 |
I dove deep into the issues on Selenium + their js docs & the issues on gecko-driver and found out that the Profile object never gets handed to gecko_driver. I'm not exactly sure why but I think it's because this way of setting options will be deprecated in favor of using Capabilities. |
I'll try it out soon. You succeeded where I failed several times. I've probably spent 10+ hours I think you're right about the future being in capabilities. That makes a It's hard to overstate how helpful this is. It's great to be able to do npm i; On Sun, Nov 6, 2016 at 9:36 AM Jonathan Dupre [email protected]
|
Running
npm run firefox
launches the browser, but the debugger atlocalhost:8000
doesn't seem to know it exists. The command errors out, so I think that might be the reason.The text was updated successfully, but these errors were encountered: