Click position is Wrong

Hi,
I developing Web automation. my scenario is text box inside text link i want to click if name is big is working fine (Below attached screenshot)

Screenshot 2024-06-14 152311

in case text is small click happen in center of the text box (below attached screenshot)

Screenshot 2024-06-14 152344

any one help to solve this situation.

Regards,
Mohamed Farhan

Hi @MD_Farhan1

→ For this case, you can use the Get Attribute activity and indicate the Ui element. Select the hasFocus option from the Attribute dropdown. Open the properties and create a variable in the Output element option let’s call the variable name as AttributeElement.
→ After Get Attribute activity insert the click activity and pass the AttributeElement to the Input Element field in Click activity properties.

This will not consider the length of the word it will directly click on it.

Hope it helps!!

Give me Some screenshot for my referance.

Thank you

Regards,
Mohamed Farhan

@MD_Farhan1

you can set click position to top left with some offset as well to make it click properly

alternately if simulate works better use that

image

Okay @MD_Farhan1

Check the below flow for your understanding,

Crete a variable in the Output Element field of Get Attribute Activity, pass the same variable to the Input Element field for the Click activity. after you passed you no need to indicate the Ui element.

Hope you understand!!

You using use application and window activity . without this activity is possible pls send that work flow thank you.

Regards,
Mohamed Farhan

Indicate the text, not the box around it. If it doesn’t see the text as a separate UI element, use the offset settings suggested by @Anil_G

Are you using the Classic activities… @MD_Farhan1

1 Like