Getting runtime error when using the FindChildByXpath() Method if Object is not existed in page
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Getting runtime error when using the FindChildByXpath() Method if Object is not existed in page
Hi Guys,
Checking Exists Property When Object is not existed in page:
1.I am getting runtime error when using the FindChildByXpath() Method for finding the object and for the same object i am getting without error when i use the findChild() method.it returns as fasle when the object is not existed in page.
Checking Exists Property When Object is existed in page:
2.Above both methods are returns true when the object is existed on page.
Please do the needful.
Thanks,
Gnaneshwar
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It seems TC working as it supposed to
according to documents...........
if fails FindChild method returns a stub object that only contains the Exists property equal to False.
If the search failed, FindChildByXPath returns a null object
hence if you check exists property in findChild would not give error but FindChildByXPath would give error since there in no object.
more infor FindChildByXPath find child
