Article Overview:
This article will cover how you can achieve the following:
Users encounter difficulties clicking on a div
or input
element in some applications.
Problem Statement:
The nesting of the clickable element inside an input
element causes Virtuoso or other automation tools to highlight and interact with the input field's center. This behavior prevents the tool from successfully clicking on the intended element.
Solution:
To address this, we store the element details in a variable and adjust the mouse position to click on the desired part of the element. Specifically:
- The
Mouse Over
operation highlights the element and moves to its center. - To reach the clickable area (e.g., a link within the element), we adjust the cursor position by moving it slightly to the left (e.g., 20 pixels).
- Finally, we click on the adjusted position.
Implementation Steps in Virtuoso:
-
Store element details of "Your element in picture" in $test
-
Mouse over $test
-
Mouse move by -20, 0
-
Mouse click
Comments
0 comments
Please sign in to leave a comment.