01-10-21 01:41 PM
I am working with an scenario which involves spying elements in Chrome using Xpath.
I 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!
01-10-21 02:06 PM
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*