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...