Page 1 of 1

Clicking an element using coordinates not working in user code module

Posted: Tue Jun 09, 2020 4:00 pm
by Sandeep1632
Hi,

We are trying to click an element using the Click() method using coordinates. But these coordinates are not consistent and click operation is failing when we are running the same test cases in different machines.
Attached is the screenshot and snapshot of the element.
The highlighted part in the screenshot is treated as single element when I tracked and my requirement is click on the drop down icon.
Could some one suggest if there is any other way where I can resolve this.

Thanks in Advance!

Regards,
Sandeep

Re: Clicking an element using coordinates not working in user code module

Posted: Wed Jun 10, 2020 6:28 am
by odklizec
Hi,

Well, I think that in this particular case, you best hope lies in a combination of GDI Capture and/or image-based click action.

At first, explore the possibility of expanding the combo another way than just clicking the expand button (e.g. double click directly to combo, sending a shortcut key to combo, etc...). If there is no such possibility, then you will have to try something else.

Add the list (or its parent element(s)) to GDI Capture list. If you can identify individual combo/list elements using GDI Capture RawTexts, you should be able to create an xpath to uniquely identify the problematic list item. And then you should be able to create image-based action for "expand" button, belonging to given list row/item.