I have the following code below.
It work as I dont want to use the Wait statement anymore.
The problem is that I have to cut and paste these code into everyone of my Test Flow step because the .WedEdit variable will change on each of the flow.
Is there a way to cut down on the repetitive step?
===============
It work as I dont want to use the Wait statement anymore.
The problem is that I have to cut and paste these code into everyone of my Test Flow step because the .WedEdit variable will change on each of the flow.
Is there a way to cut down on the repetitive step?
===============
Code:
blnDone=Browser(oDeltaBrowser).Page(oDeltaPage).WebEdit("name:=departureCity\[0\]", "html id:=departureCity_0").Exist
counter=1
While Not blnDone
Wait (2)
blnDone=Browser(oDeltaBrowser).Page(oDeltaPage).WebEdit("name:=departureCity\[0\]", "html id:=departureCity_0").Exist
counter=counter+1
If counter=10 then
blnDone=True
End if
Wend