Element exists works with a simulate option

Hello,
Does “Element exists” activity works with simulate click?
I dont want my robot a see something if it is not visible and necessite a scroll down to be seen how can i do it?

Hi @Dhouha_Cherif

If you want to perform actions like clicking, and you want to use a “Simulate Click” option, you can use other activities like “Click” or “Click Text” with the “Simulate Click” option enabled.

If you don’t want your robot to interact with an element that is not initially visible and requires scrolling to become visible.

-Use “Element Exists” to check if the element is present.

Follow this steps:

-If “Element Exists” returns True, indicating that the element is present but not visible without scrolling, you can use additional activities to scroll down the page or scroll the relevant element into view. You might use “Send Hotkey” or “Type Into” activities to send keyboard shortcuts like Page Down, or you can use activities like “Scroll Up” or “Scroll Down” provided they are supported by the application or webpage you are automating.

-After the element is scrolled into view, you can perform the desired action, such as a “Simulate Click.”

Cheers…!

If you use classic activities, you can use the Find Element. It has an option to check for visiblity. The modern counterpart would be Check App State.


As you can see, the robot can recognize the element even if it is not visible initially.
(The selector is for the element exists)
Is it normal?

Yes, it’s normal.

Here’s some options how you can check for visiblity:
a) Find Element:


b) Check App State:

c) Get Attribute - relativeVisiblity

1 Like

The second option worked
Thank you very much
I tried it before but forgot to check the “fully visible”

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.