I am trying to create as automation where a OK button gets pushed if a certain element does not exist, but this OK button could potentially exist 10 times in a page.
See attached image, the possible match found is what I want to check for, if it doesn’t exist, press OK, if it does ignore. Then move onto the next one, after doing it 10 times, move onto the next page.
The Ok might not always exist either. Is this possible? Thought it was a combination of waitforelementnotvisible,click and while.