Verify if element exists without waiting for timeout

Hi,

Is there a way to verify if an element exists without waiting for the timeout?

I have to be fast and I’m already waiting for the page to load, so no need to wait for a timeout to decide whether the element is there or not.

Thanks,
R

https://ui.vision/rpa/docs/selenium-ide/waitforelementpresent

I didn’t understand the answer. I want to check if an element is present or not without waiting. I already did the waiting in a previous command (like page load)

If the element is present instantly do A, if not, instantly do B.

Is that not possible?

Thanks,

Oh I see. You want verifyElementPresent assertElementPresent, assertElementNOTPresent, verifyElementPresent (assert Element Present, assert Element NOT Present) - Selenium IDE Commands Tutorial

The screenshot shows exactly what you are trying to achieve combing it with the if_v2 command.

1 Like