javascript - Accessing properties of window with Selenium -


The page I am trying to test sets the value of "global variable". From firebug, I can see those people as the properties of window objects (like window.foo).

However, selenium.browserbot.getCurrentWindow () type from selenium. Foo always say "undefined", say, in the condition of a wait. Can i wrong

I think this is not possible, it can be done using insecure in greasemonkey, However, he does not work in selenium. I tried to do this

 addLocationStrategy zzz Return Prompt (Window.a); 

and

 Click on zzz = xxx 

but I can not log in at it. If you have any idea how to do this, then let me know.

If you can put that variables in some HTML control over your page. Its a hack, but .....


Comments