Ask a Question

Xpaths provided in Namemapping not getting recognized when correct Xpath is not the first one

SOLVED
vijayakrishnabv
Occasional Contributor

Xpaths provided in Namemapping not getting recognized when correct Xpath is not the first one

Hi,

I have below Namemapping & when provided first xpath is not correct, TestComplete not identifying object based on the second or subsequent matching xpath.

Can you please help?

 

vijayakrishnabv_0-1699626861594.png

 

12 REPLIES 12
vijayakrishnabv
Occasional Contributor

Thank you all for your time.

Issue got resolved by using below in namemapping as per our DOM structure:

//iframe[contains(@id,'frame')][contains(@style,'height')]

rraghvani
Champion Level 3

So contains works as suggested? Not sure why you are using height

vijayakrishnabv
Occasional Contributor

Webpage has 2 iFrames & all the controls are getting loaded either under iframe1 or iframe2 dynamically.

Earlier also I was using contains and was not getting identified particular iframe where controls are loaded. We identified that height is one additional tag getting displayed when controls are getting loaded under specific iframe.

Appreciate your help Raghavan.

cancel
Showing results for 
Search instead for 
Did you mean: