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
Post a Comment