trying to make a function that creates a list or table of the separators within this widget and clicks them if they match an input string, I also attached the snapshot
in sudo:
void (string inputString){
IList<Separators> separatorList = new List(repo.NameOfWidget.Element);
foreach(Separator patientFile in sparatorList){
if(patientFile.GetAttributeValueText("accessibledescription") == inputString){
patientFile.click();
break;
}
}
}
separators within widgets
separators within widgets
You do not have the required permissions to view the files attached to this post.
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: separators within widgets
Hello mander95,
You could use somthing similar to that:
Sincerely,
Robert
You could use somthing similar to that:
public void ClickSeperators(string inputString) { Form root = "/form[@title='VECTRA']"; foreach (Separator element in root.FindChildren<Separator>()) { if(element.Element.GetAttributeValueText("accessibledescription") == inputString) { element.Click(); } } }Hope this helps
Sincerely,
Robert