Waitproperty on UFT
Question ID: 105875
1
0

I have set waitproperty to 600000 expect it to wait for 10mins.. but i waits only for 2 mins, sometime 5 mins. Below is my code



If Browser("index").Page("index").WebEdit("Account").WaitProperty("disabled", 0, 600000) OR Browser("index").Page("index").WebButton("Apply").WaitProperty("disabled", 0, 600000) Then
    Browser("index").Page("index").WebEdit("Account").Set ("123")
EndIf
Marked as spam
Posted by (Questions: 45, Answers: 0)
Asked on January 27, 2015 9:10 pm
419 views
Answers (1)
1
Private answer

I see you have an 'OR' in the 'If Then' statement. Is the WebButton being enabled before the WebEdit? Got to remember if there is OR either of the evaluations true will execute the then part of the code.

Marked as spam
Posted by (Questions: 2, Answers: 98)
Answered on January 27, 2015 9:11 pm
EyeOnTesting

Welcome back to "EyeOnTesting" brought to you by Orasi Software, Inc.

X
Scroll to Top