Forum Discussion

Vars01's avatar
Vars01
Occasional Contributor
3 years ago
Solved

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 val...
  • Lee_M's avatar
    3 years ago

    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

       }

    }