cancel
Showing results for 
Search instead for 
Did you mean: 

Using Xpath iin Chrome for spying elements

Shomesh
Level 3

I am working with an scenario which involves spying elements in Chrome using Xpath.

36313.pngI have written an XPath for the field highlighted in above image

//div[contains(@style,'visibility: visible')]//div//following-sibling::div[@class='x-window-bwrap']//child::table//child::td//child::div[normalize-space()='*Document Name(Title)']

When the window is open and I try to highlight the field with application Modeller it highlights perfectly.

Where else when the window is closed and I pressed Highlight Button in Application Modeller, the Highlighting action is taking place somewhere(which can't be notified). 

My Clarification is that instead of throwing error Saying "Error - Highlighting results - No matching Web elements found" the highlight action takes place in the window.

Your inputs will be useful.

Thanks in Advance!

1 REPLY 1

VedSengupta
Level 6

Hello Krish,
This can happen sometimes in runtime.

Try using match index if you are aware of the element position in element tree.
Or else use CSS Selector to identify the element. It can give you better results.

Best Regards,
Ved Sengupta
Deloitte India(Offices of the US)
Bangalore | India
*If you find this helpful, Please mark as best answer*

------------------------------ Best Regards, Ved Sengupta RPA Developer Deloitte India (Offices of the US) Bangalore | INDIA *If you find this post helpful mark it as best answer* ------------------------------