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:

  1. The browser launches in the first normal size ( document.body.clientHeight = 500px ) has gone. After maximizing the window, property 500px

  2. Scroll off the top offset ( document.body.scrollop ) resumes In 0 , I scroll when I am using the property, it is 0

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

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -