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

IE / Firefox support #32

Open
reganp opened this issue Jul 21, 2017 · 5 comments
Open

IE / Firefox support #32

reganp opened this issue Jul 21, 2017 · 5 comments

Comments

@reganp
Copy link

reganp commented Jul 21, 2017

Hi I'm not sure if Firefox and IE are supported yet but I'm getting errors when trying to run tests on these browsers (Chrome is working fine).

Firefox and IE:
The console output of wptagent keeps repeating this message:
"Connect to dev tools Error: HTTPConnectionPool(host='localhost',port=9223): Max retries exceeded with url: /json (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x0358C970>: Failed to establish a new connection: [Errno 10061] No connection could be made because the target machine actively refused it',))"

Chrome (FYI):
The console output of wptagent displays this message:
"Connect to dev tools websocket Error: [Errno 10061] No connection could be made because the target machine actively refused it"

Firefox:
The browser loads but it won't navigate to the test url.

IE11:
The browser loads but it always navigates to this url (I'm guessing it's bing.com because that's the default search engine on IE):
"https://www.bing.com/search?q=--disable-background-networking+--no-default-browser-check+--no-first-run+--process-per-tab+--new-window+--disable-infobars+--disable-translate+--disable-notifications+--disable-desktop-notifications+--disable-save-password-bubble+--allow-running-insecure-content+--disable-component-update+--disable-background-downloads+--disable-add-to-shelf+--disable-client-side-phishing-detection+--disable-datasaver-prompt+--disable-default-apps+--disable-domain-reliability+--safebrowsing-disable-auto-update+--disable-background-timer-throttling+--host-resolver-rules%3D%22MAP+cache.pack.google.com+127.0.0.1%22,%22MAP+clients1.google.com+127.0.0.1%22+--window-position%3D%220,0%22+--window-size%3D%221024,768%22+--remote-debugging-port%3D9224+--user-data-dir%3D%22C%3A%5Cwptagent-new%5Cwptagent%5Cwork%5CWPT-Test22%5Cbrowser.170721_DW_3.1%22+--no-sandbox+about%3Ablank&src=IE-TopResult&FORM=IETR02&conversationid="

I added Firefox and IE11 to browsers.ini as follows:

[IE11]
exe=C:/Program Files (x86)/Internet Explorer/iexplore.exe

[Firefox]
exe=C:/Program Files (x86)/Mozilla Firefox/firefox.exe

@reganp
Copy link
Author

reganp commented Jul 21, 2017

Just noticed this: "(currently supports Chrome only on Windows and Linux)". Do you have ETA on IE / Firefox please?

@pmeenan
Copy link
Contributor

pmeenan commented Jul 21, 2017

IE isn't supported yet.

Firefox should work and shouldn't require anything in browsers.ini. It should detect both stable and nightly installs. That said, if you define it manually, you need to add "type=Firefox" after the exe definition so it knows how to drive it.

@reganp
Copy link
Author

reganp commented Jul 21, 2017

Thanks Patrick. When I try to run test in Firefox without browsers.ini entry I get this in console output:
"Unhandled exception running test: No module named marionette_driver.marionette Traceback (most recent call last): File "C:\wptagent-new\wptagent\wptagent.py", line 64, in run_testing self.run_single_test() File "C:\wptagent-new\wptagent\wptagent.py", line 111, in run_single_test browser.launch(self.job, self.task) File "C:\wptagent-new\wptagent\internal\firefox.py", line 98, in launch from marionette_driver.marionette import Marionette ImportError: No module named marionette_driver.marionette"

@pmeenan
Copy link
Contributor

pmeenan commented Jul 21, 2017

pip install marionette_driver

@reganp
Copy link
Author

reganp commented Jul 21, 2017

The Firefox browser is locking up and I'm getting this console error:
Unhandled exception running test: No data received over socket
Traceback (most recent call last):
File "C:\wptagent-new\wptagent\wptagent.py", line 64, in run_testing
self.run_single_test()
File "C:\wptagent-new\wptagent\wptagent.py", line 111, in run_single_test
browser.launch(self.job, self.task)
File "C:\wptagent-new\wptagent\internal\firefox.py", line 119, in launch
self.marionette.set_window_size(height=task['height'], width=task['width'])
File "C:\Python27\lib\site-packages\marionette_driver\marionette.py", line 204
3, in set_window_size
return self._send_message("setWindowSize", body)
File "C:\Python27\lib\site-packages\marionette_driver\decorators.py", line 28,
in _
m._handle_socket_failure()
File "C:\Python27\lib\site-packages\marionette_driver\decorators.py", line 23,
in _
return func(*args, **kwargs)
File "C:\Python27\lib\site-packages\marionette_driver\marionette.py", line 731
, in _send_message
msg = self.client.request(name, params)
File "C:\Python27\lib\site-packages\marionette_driver\transport.py", line 284,
in request
return self.receive()
File "C:\Python27\lib\site-packages\marionette_driver\transport.py", line 184,
in receive
raise socket.error("No data received over socket")

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

No branches or pull requests

2 participants