spriteCloud / lapis-lazuli

Cucumber helper functions and scaffolding for easier test automation suite development.
Other
7 stars 7 forks source link

Build better Browser.url #21

Open jfinkhaeuser opened 9 years ago

jfinkhaeuser commented 9 years ago

http://www.natontesting.com/2009/09/21/watirs-browser-url-returning-the-previous-pages-url/

With *\ we had some issues when AngularJS changed the page hash. The browser still showed the last URL it had seen via either goto or a href link.

The solution is to request the URL via JS:

ll.browser.execute_script("return document.location.toString();")

This should be the default action for ll.browser.url and remap the original url function to a different name