javascript - How to open a URL with a hash using Selenium? -
javascript - How to open a URL with a hash using Selenium? -
i'm trying test backbone.js web application selenium ide.
selenium can open test case's initial url long it's in fresh browser window -- e.g. open /#/login
-- times out whenever tries open subsequent urls.
it seems selenium listening event isn't triggered when url hash changes.
i imagine happens time you're using hashchange + selenium...
in selenium ide utilize 'storeeval' command, illustration :
command = storeeval target = window.location.hash='/search/events/birthdays/1'
storeeval runs javascript snippet assigned "target". can do, have 1 test case opens start page using open(url) command, , rest of cases changing hash using storeeval command.
javascript backbone.js selenium hashchange
Comments
Post a Comment