i'm trying to use FindSingle on an adapter. If I read the documentation, he would search for the xpath in that specific element. Although he applies the findsingle on the whole dom-element.
Item in repository:
Code: Select all
//div[@data-aut='fields.squad_name']
My code:
Code: Select all
[UserCodeMethod]
public static void setDropdown(Adapter Dropdown, string waarde)
{
InputTag myInput = (InputTag)Dropdown.FindSingle("//input");
Report.Info(myInput.GetPath().ToString());
}
Code: Select all
/dom//input[#'attachmentInput']
Code: Select all
/dom//div[@data-aut='fields.squad_name']//input[#'attachmentInput']
Bart