Help with Dynamic Login Button Placement for Web Automation

Hi everyone,

I’m working on automating a login process across multiple URLs using a robot, but I’m facing an issue. The login button on each of these pages is not placed in a fixed position—it tends to be a little left or right on different pages. Currently, I’m trying to make the robot click the login button, but due to this variability in positioning, it’s not always successful.

I have also attached two screenshots in one it is able to detect the Login button and the target, In the another one it is not able to properly detect it. The target is Login button and the Anchor is icon of suitcase.

What changes should I make to the selector so that it can reliably capture the login button, regardless of its position on the page, and click it?

Any suggestions or solutions would be greatly appreciated!

Thanks in advance!


Hi!

Using Computer Vision and static positions should be avoided.

An try to lean towards using Strict Selectors wherever possible.
Use UI Explorer to see the attributes and properties.
Studio - UI Explorer
Studio - About Selectors

You can even use regex in your selectors or dynamic input:
Studio - Dynamic Selectors
Studio - RegEx Search

Take a screenshot of your UiExplorer and the available selections for your buttons if you want some suggestions.

Thank you for your help.
As per your suggestion, I have unchecked the Computer Vision and enabled the Strict Selector.
Can you please check the screenshot and tell me what changes should I make in the selectors.

Thank you!

The button didn’t really have that much information, but still, try to compare that button’s selector to the other button?
See if you can find anything similar, like structure, naming etc

Thank you for helping me.

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