Is there a way to get info on whether an element exists on a page or not in Robot framework?
I would like to take one action if element exists on page, or another if element doesn't exist.
In Selenium, I would use findElements()
, and that would return a list of elements, or an empty list if nothing is found.
In Robot, however, if I use Get webelements
and nothing is found, test breaks with error:
ValueError: Element locator 'id=asdf' did not match any elements.