Wait Attribute error when text on button changes

I am trying to run the selector demo from the Foundation course and it doesn’t seem to work

Mainly, it just waits until the Start button changes the text to “Round 1” which it does when you press it. But I get an “Wait Attribute: The UiElement is no longer valid” error for some reason. But I followed the sample exactly. “button” is a UIElement.

Why would the element become invalid - it didn’t in the demo.

Thanks,

Tom

1 Like

I tried taking out the “Open Browser” and started the web page then ran the program (the image above is still the same).

I don’t get the above error, but the “Wait Attribute” doesn’t seem to work. As you can see from above, I am waiting for the innerText to change to “Round 1”, which it does when you press the Start button. But the program just sits there until it errors out.

If I start the page, press the “Start” button (which change the text) and run the program then, it works fine.

The value the activity is looking for seems to be correct (or the 2nd test wouldn’t work either), so the “Wait Attribute” doesn’t seem to see the change when I press the button - which is the whole point of the activity.

Am I missing something (I’m sure I am).

Thanks,

Tom

1 Like

Same problem here! Couldn’t solve the exercise

Same thing here months later. I even tried changing “innerText” to “innertext” to match.