Before I start posting my snapshots and whatnot, I am just wondering if someone can help me with my syntax just by viewing the snippet:
Host.Local.TryFindSingle("/dom[@domain='127.0.0.1']/body/table[2]//form[@id='pform']/table/?/?/tr[@id='IDSpecifyIPSpace']/?/?/div[@id='ipdiv']/?/?/iframe[@id='ipframe']//td[@innertext='*.domain.com']/.//input", out CheckBox); CheckBox.checked = "True";I am getting error:
; expected (CS1002) - \\yvcdc03\UserHome\amackintosh\My Documents\Ranorex\RanorexStudio Projects\Volo\Volo\test1.UserCode.cs:45,32
Invalid expression term '=' (CS1525) - \\yvcdc03\UserHome\amackintosh\My Documents\Ranorex\RanorexStudio Projects\Volo\Volo\test1.UserCode.cs:45,30
{ expected (CS1514) - \\yvcdc03\UserHome\amackintosh\My Documents\Ranorex\RanorexStudio Projects\Volo\Volo\test1.UserCode.cs:45,30
Identifier expected; 'checked' is a keyword (CS1041) - \\yvcdc03\UserHome\amackintosh\My Documents\Ranorex\RanorexStudio Projects\Volo\Volo\test1.UserCode.cs:45,22
Line 45 is CheckBox.checked = "True";
The first line correctly identifies the checkbox. I see it when I highlight the element in Spy. I have also correctly used element.checkbox = true before in a previous trial and error test I was doing, but with something like repo.VoloMP.SelectDomains.CheckBox = "True";.
I suspect my issue starts with the first line "out CheckBox" and my syntax is simply incorrect for CheckBox.checked = "True";
In this case, I cannot put the element in here from the repo because I need that domain to be exposed for a ForEach loop to select a variable number of domains from a comma separated list within a cell from an XLS file.
Thanks for any help,
Adam