Web browser-based click activity using a web selector, where the selector relates to an item that is not immediately on the screen (browser must be scrolled down to bring the item into view)
The click activity will scroll the screen as required, and then click in the screen position of wherever the item matching the selector is located after the scroll was completed
The click activity will scroll the screen as required, and then click in the screen position of wherever the item matching the selector was located before the scroll was completed
- Both Chrome andFirefox
- Enterprise Studio/robot
– and likely some earlier releases
Steps to reproduce:
Instructions to reproduce using above workflow:
- Navigate to uipath.com in Chrome (with uipath extension installed)
- Leave the browser scroller at the top of page
- Run workflow
- The mouse click will ‘miss the screen’ entirely (vertically, not horizontally) and UiPath will throw an error
Now, leave the screen scrolled to a position where the orange “read article” button is visible.
- Re-run workflow
- Click activity will work fine
- Repeat as with scenario A, but this time position the scroller such that the orange “read article” button is just outside the view. In other words, the button should be obscured only by the taskbar
- This time uipath will click the exact position on taskbar where the button had been obscured (before uipath scrolled)
- No exception will be thrown; uiPath will behave as if the click was successful.
Capture the click in a 2x Retry activity. The second will hit accurately, because the scroll is already done (in other words, forcing Scenario B above). This will only work if the first click does not interfere with your workflow (eg by clicking on taskbar in a way which interferes).