Forum Discussion

gnaneshwar_cse5's avatar
gnaneshwar_cse5
Occasional Contributor
9 years ago

Getting runtime error when using the FindChildByXpath Method

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

1 Reply

  • TanyaYatskovska's avatar
    TanyaYatskovska
    SmartBear Alumni (Retired)

    Hi Gnaneshwar_cse5,

     

    Could you please post the problematic line here? Perhaps, there are some issues in the method’s parameters.