I'm using Selenium IDE for Chrome and I'm trying to click somewhere only if a specific element doesn't exist.
If I only wanted to do that, I can do it with an assert
:
assert element not present css=.something
click css=.button
However, this is part of a larger script and I want to continue with the rest of the script regardless of whether the element exists.
So I want to do something more like:
if {something which means roughly "assert element not present"}
click css=.button
end
Is this possible? How do I do this?