Pylons / webtest

Wraps any WSGI application and makes it easy to send test requests to that application, without starting up an HTTP server.
https://docs.pylonsproject.org/projects/webtest/en/latest/
Other
335 stars 108 forks source link

Seleniums getLocation() working with Chrome, not Firefox #6

Closed domenkozar closed 11 years ago

domenkozar commented 11 years ago

kvdb:

I use this code to get the current browser URL:
browser_url = self.app.browser.getLocation()

With *googlechrome, I get: http://127.0.0.1:53381/selenium-server/core/Blank.html?start=true

That's consistent with what I see in the logging: Allocated session 70056e911d6747dcbb71925ae0aa48db for http://127.0.0.1:53381/, launching...

With *firefox however, I get:

http://localhost:4444/selenium-server/core/Blank.html?start=true

Which is the port for server communication, not the browser, which
should be port 33844 according to the log:

Allocated session aa13e897f2ac40babc0563726f0fd4fa for http://127.0.0.1:33844/, launching...

Not sure if this the right way to get the URL, if it's a bug in webtest,
the selenium drivers or any other component.

URL: https://bitbucket.org/ianb/webtest/issue/43/seleniums-getlocation-working-with-chrome

domenkozar commented 11 years ago

Selenium moved to webtest-selenium.