Forum Discussion

Mohit_Dadhich's avatar
3 years ago

Desktop Testing using TestComplete-Unable to update xpath in selector using ancestor/sibling concept

I am not able to track/highlight an object in Name Mapping using the selector(created using dynamic xpath containing ancestor/sibling concept)

- the selector which i am using here is : //div[text()='Tender Number']/following-sibling::panel. This xpath is working fine till //div[text()='Tender Number'] and i am able to highlight it as well. and this object contains 1 sibling span but i am not able to find it.if added at the end of the xpath.


In TestComplete, is there any other way to use ancestor/sibling concept of xpath?

Please refer to the attached screenshot.