Unable click on Button

Hi Team ,

I had a problem like need to click on a button based on Label text field name but label filed position will change ones we submitted .For some filed i have used “Anchor Base Activity” and it is working .
Now when “User group” has identified i need to click on button by using Anchor base we can click left one position but here when we identify the User group filed bot has click after 3 position as in screen shot.
Need help on this.

You have to manage click selectors if Fuzzy and Stricts are not working try to use image or Computer Vision.

Thank you
Akhil

@Thumu_Suresh,

Why to complicate the things with Anchor base. These button would have unique it’s to be identified or you can build it with Ui Explorer.

Try this direct approach.

Thanks,
Ashok :slight_smile:

We have different environments like Q4,Q5 and Q7 for environment the selectors were different That why we need to identify them with Label filed names.

@Thumu_Suresh,

Still I think you can use wildcard symbols * to replace multiple characters or ? to replace single. This will make your selectors dynamic.

I don’t think apart from names there would be any difference. Try this.

Thanks,
Ashok :slight_smile:

1 Like

I tried all the option but it is not working

SyntaxEditor Code Snippet

.

That why i chose Anchor base Option.

@Thumu_Suresh,

One last option from me to have a selector mapping file for all the required selectors as per environment and use specific selector as per it.

I’m advising non anchor base because it’s delicate and complex to achieve and SAP is not that much complicated to use it.

Also I remembered one thing about different selectors in different environments, it happens due to SAP Connection network settings. verify that the High-Speed Connection (LAN) option is checked. Check this document for more details: Client Side Network Settings - Setup

Thanks,
Ashok :slight_smile:

Can you show the selector in UI Explorer?

This is for Q6 Environment:-


This is for Q4:

If we use wildcard * or ? the bot will click different position button whether it might be first or second …etc.

Try this : put values and validate it work or not let me know

Thank you,
Akhil

@Thumu_Suresh,

You store the sap I’d of each control required in config file and in selector use variable to pass the selector based on your environment.

This is the best approach i would say.

Thanks,
Ashok :slightly_smiling_face:

It is not working bot is clicking on different Multiple selection button.
Other Buttons are also has same selector but only difference is number .

Try this:

Extract QS?-> ID and sap id into variable, and put it into if condition —> if condition is matching pass click activities in do section