FindSingle not finding an InputTag on a webform
Posted: Wed Mar 11, 2009 12:41 am
Please see if you can find the issue here.
This code searches for an inputTag with a specific ID on the webDocument.
It works on one webDocument with a different inputTag (that doesn't live so buried in a table), but is failing on this one.
Here is the RanorexPath to that inputTag I am searching for:
In RanorexSpy the Webelement shows as:
Class: CmdBtn
Id: btnShowVS
TagName: INPUT
I am getting the error:
Ranorex.ElementNotFoundException: No element found for path './/input[@id='btnShowVS']'.
Thanks...
This code searches for an inputTag with a specific ID on the webDocument.
Code: Select all
PushButtonname = "btnShowVS";
DOMPushButton = webDocumentName.FindSingle(".//input[@Id='" + PushButtonName + "']");
Here is the RanorexPath to that inputTag I am searching for:
Code: Select all
/dom[@caption~'^Hard\ Dollar\ ::\ Resource\ C' and @pageurl='http://localhost/resourcecoordination/MainPage.aspx']/body/form/div[@id='buttons']/*/*/tr[2]/td[@innertext='Current View: ']/input
Class: CmdBtn
Id: btnShowVS
TagName: INPUT
I am getting the error:
Ranorex.ElementNotFoundException: No element found for path './/input[@id='btnShowVS']'.
Thanks...