jquery - Why does my Selenium command not work? -


i'm writing selenium script should start testing after ajax calls have completed.

several forums have suggested use following condition (in waitforcondition command):

selenium.browserbot.getcurrentwindow().jquery.active == 0 

unfortunately keeps throwing error:

jquery undefined

jquery defined on site. have tried substituting jquery $, same error.

any ideas?

you might need wait jquery have finished loading, try waiting until

typeof selenium.browserbot.getcurrentwindow().jquery == 'function' 

is true, before checking active.


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -