My code looks like this
# Shell DocObject View_0
win_check=set_window ("Shell DocObject View_0", 11);
scroll_max ("ScrollBar", VSCROLL); # 87%;
I am doing a Data-Driven test in which I need to scroll down to the bottom of the page and find the text in the edit box. Problem I am facing is sometimes when it comes to the line "scroll_max("ScrollBar",VSCROLL), it is not able to find the object scroll_bar. It says that window to which the object belongs is not set. But always win_check returns 0 and scroll_max's parent window is "Shell DocObject View_0". But what i don't understand is for some rows(in data table it runs fine) but when it comes to 2nd or 3rd row in the table, i get this prob.