Xpaths provided in Namemapping not getting recognized when correct Xpath is not the first one
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
Solved! Go to Solution.
- Labels:
-
Web Testing
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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')]
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
So contains works as suggested? Not sure why you are using height
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.

- « Previous
-
- 1
- 2
- Next »
- « Previous
-
- 1
- 2
- Next »