Continuous Changes in the Text for field when specific value is displayed it should capture the Text
Continuous Changes in the Text for field when specific value is displayed it should capture the Text
I have a row in which one column values changes frequently i want to capture the specific value and wait till the value is displayed.
was trying to use WaitProperty as described below but it is not waiting for the specific time and directly printing Fails
Is there any way i use to wait for the value to updated to specific text value
I want Requested to changed to "Passed"
if(Status.WaitProperty("textContent", "Requested", 100000) == false)
{
Log.Message("Pass")
}
else
{
Log.Error("Fail")
}
Hi,
Sometimes I find it waiting in an empty while loop to get the job done more effectively.
//loop breakout counter
i = 0
while ("textContent" != "Requested") {
// do nothing until condition is true
// can have a X second delay before perfoming the test again
// may want to think about a breakout clause too
i++
if (i = 10) {
Runner.stop() // fail and end test
}
}