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.
kvdb:
URL: https://bitbucket.org/ianb/webtest/issue/43/seleniums-getlocation-working-with-chrome