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

Popular posts from this blog

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

javascript - mongodb won't find my schema method in nested container -