Selenium Dom values are not updated -
I see a problem with IE 6/8 in Selenium, giving me some bad times. After that task, the DOM window properties are not updated and always return the default values.
To give you some examples:
-
The browser launches in the first normal size (
document.body.clientHeight = 500px
) has gone. After maximizing the window, property500px
-
Scroll off the top offset (
document.body.scrollop
) resumes In0
, I scroll when I am using the property, it is0
Has anyone seen this problem before or can know what is the reason?
To access the window and document objects in the Selenium test, you must this.browserbot.getUserWindow ( )
is inserted. This gives you access to the page that is working on Selenium.
int offset = Convert.ToInt32 (selenium.gate Evil ("this.browserbot.getUserWindow (.. Document.body.scrollTop"));
Comments
Post a Comment