06-29-2009, 06:20 PM
I have been developing a test using descriptive programming. Everything works fine up to a certain point. I'll get to that soon.
Pretty much, it is a web page with inputs and buttons at the top and a data table following those. The first and second buttons work just fine, but the third does not. It's weird because it will scroll over to the button and it has the active state, it just doesn't seem to click it most of the time. It has worked once or twice, so I added some wait loops with the same result.
I'm just curious if anyone else has had such an issue? Here is an example of the code. The problem is at the bottom. It actually opens a download dialog and is supposed to click through it...
Pretty much, it is a web page with inputs and buttons at the top and a data table following those. The first and second buttons work just fine, but the third does not. It's weird because it will scroll over to the button and it has the active state, it just doesn't seem to click it most of the time. It has worked once or twice, so I added some wait loops with the same result.
I'm just curious if anyone else has had such an issue? Here is an example of the code. The problem is at the bottom. It actually opens a download dialog and is supposed to click through it...
Code:
With Browser(browser).Page(page).Frame(frame)
.WebEdit("name:=input1").Set ""
.WebEdit("name:=input2").Set "12345"
.WebButton("name:=Find").Click
Browser(browser).Sync
Wait(2)
.WebButton("name:=Export").Click
End With