Re: Trouble selecting a checkbox with usercode
Posted: Thu Jun 11, 2015 6:59 pm
OMG I fixed it!
The problem was the path to that delete button was too specific somehow, so I made it a bit looser and it instantly worked
Here is my working code:
-Adam
The problem was the path to that delete button was too specific somehow, so I made it a bit looser and it instantly worked
Here is my working code:
public void Validate_TrackTable() { IList<Ranorex.ATag> foundTags = repo.VoloMP.TrackTable.Find<Ranorex.ATag>(@".//input[@tagvalue~'nhd6mid.BG6uvr7i']/../..//a[@id='deleteMe']"); Report.Log(ReportLevel.Info, "Test", "Table grabbed.", repo.VoloMP.TrackTableInfo); foreach (ATag curATag in foundTags) { curATag.PerformClick(); Report.Log(ReportLevel.Info, "Test", "We should see 3 of these: "+curATag.InnerText, repo.VoloMP.TrackTableInfo); } }Here is my log output, which is exactly how it should have looked:
It also clicks on the 3 delete buttons it was supposed to, so extreme thanks to odklizec. I couldn't have done it without you.00:02.358 Info Test Table grabbed.
00:02.387 Info Test We should see 3 of these: delete
00:02.416 Info Test We should see 3 of these: delete
00:02.443 Info Test We should see 3 of these: delete
-Adam