In the below example I have a dynamic table with rows named Row011 to Row0x1, where x can vary. I'm trying to make a for loop that will go through all rows, 1 to x and click them.
int i; Accessible repopath; for(i = 1; i <= Variables.NumRows; i++) { Report.Info("Turning on Link " + i); repopath = "repo.FormSM.Row0" + i + "1.Cell"; repopath.Click(); }I receive the following error when trying to run this code:
Ranorex.RxPathException: Invalid RxPath 'repo.FormSM.Row011.Cell'. ---> Ranorex.RxPathException: Invalid character at character position 4.
at Ranorex.Core.RxPath..ctor
at Ranorex.Core.Element.op_Implicit
at Ranorex.Accessible.op_Implicit
Is there a way to use different variables in order to access objects? I also have another instance where I'd link to use a string variable in the objects path.