jacchr
June 10, 2022, 7:51am
1
Hi Experts
I am trying to click a button on a webpage that is followed by a hyperlink. But I am not able to click the button itself but it seems to be clicking on the actual hyperlink.
If I inspect the element in Developer Tools I can see the button is highlighted when I hover ::before
How can I get around this in the selector?
Gokul001
(Gokul Balaji)
June 10, 2022, 7:53am
2
Hi @jacchr
Can you tried to use Click image activity instead of click.
Regards
Gokul
jacchr
June 10, 2022, 7:55am
3
I works with image - but I would rather not use the image option.
Gokul001
(Gokul Balaji)
June 10, 2022, 7:57am
4
Can you tell us why don’t use the Image activity @jacchr
ppr
(Peter Preuss)
June 10, 2022, 8:05am
5
can you share with us the relevant part within Visual Tree from UiExplorer. Thanks
Hi @jacchr ,
Can you share the selectors?
Regards,
MY
jacchr
June 10, 2022, 8:54am
7
It is the blue button I need to click:
This is the selector that is created when I select it with UiPath:
<webctrl id='rwp' tag='IFRAME' />
<webctrl aaname='Reports' tag='A' uipath-html-title='Reports' />
But when highlighting it is more than the button that is highlighted:
The visual tree looks like this:
I can of course configure the click to be to the left but if possible I would like to ensure that it is the icon that is clicked.
Veera_Raj
(Veeraraj Sethuraman)
June 10, 2022, 9:18am
8
please try to use click with custom offset sometimes button don’t response even you have good selector ,
ppr
(Peter Preuss)
June 10, 2022, 9:33am
9
::before is a pseudo element
W3Schools offers free online tutorials, references and exercises in all the major languages of the web. Covering popular subjects like HTML, CSS, JavaScript, Python, SQL, Java, and many, many more.
clicking on the link (a element) should work and looks not wrong