Issue Scrolling an Object
In my app under test, the web page has webelement object, which when scrolled down will enable a radio button object. In order to do that below code was done by our prior automation developer. But now the same is not working. When I debug I do see value 76 for variable "top" in line 3. But line 4 is not executed as expected. Looking for any other option or reason why below is not working.
Dim MyDoc, top
Set MyDoc = Browser("title:=.*","creationtime:=1").Page("title :=.*").Object'retieve the browser page
top = MyDoc.getElementById("notices-box").scrollTop ' get the current scrollbar position
MyDoc.getElementById("notices-box").scrollTop = top + 100'update the current scrollbar position with an additional 20 pixes
Re: Issue Scrolling an Object
The application might have changed may be. You need to look onto the same again and see why it is not working