Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Trying to do this .exist but it is always TRUE
#1
Not Solved
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?

===============

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
Reply


Messages In This Thread
Trying to do this .exist but it is always TRUE - by chong67 - 07-05-2012, 02:21 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
Smile If Then Is Always True For Web Objects zunebuggy 1 933 04-17-2020, 04:30 AM
Last Post: zunebuggy
  Exist and Visible Are True When Objects Aren't There - Is there A Better Way? zunebuggy 3 3,132 04-24-2018, 02:12 PM
Last Post: Ankur
  Time Delay issue with Exist mv8167 11 24,785 06-19-2017, 02:56 PM
Last Post: grosorg
  Performance Issues Using '.Exist' AndyBSG 2 3,481 12-12-2014, 03:24 PM
Last Post: AndyBSG
  datatable column exist diya 3 12,532 12-11-2012, 11:24 AM
Last Post: elango87

Forum Jump:


Users browsing this thread: 2 Guest(s)