Sorry to necro but I’m running into the same issue.
There are ways around it, none of which include using a code block (because I would need to be able to write scrape tasks in code and I’m not subjecting myself to that in a language I’m not familiar or comfortable with).
The only way around it, in code form, would be to do something like this:
GenericValue aastate = IsButtonEnabled("button1", "aastate");
while (aastate.ToString().Contains("unavailable"))
{
// snip
aastate = IsButtonEnabled("button1", "aastate");
}
It works, but it’s not the most efficient and WWF leaves me lacking confidence in its ability to work properly. I would rather be doing something like this:
while (true)
{
GenericValue aastate = IsButtonEnabled("button1", "aastate");
if (aastate.ToString().Contains("unavailable")
break;
// snip
}
So while I understand the work-around, it leaves me in a place where I’m having to double-up some operations in order to keep things functioning properly. Is this a restriction with WWF or with UiPath Studio?