So the problem is that all this is data driven, and its driven by a string that is of the format DateTime (requirement). So when executing the test, a string in the form of a DateTime is passed in, casted to type DateTime then parts of the date time including Month and Year are used to move the calendar to the correct area, also allowing for a leave blank check box which has other functionality with the date picker. So the DateTime is already variable and dynamic at run time. Thats not the problem.
The problem is that the exact same path that works in the repository does not work with the call I made. From what I understand, calling
Code: Select all
will look for elements within the object ExhibitionStartDay and return a Ranorex object, which is what I am looking for. The day that I want to find is an "a tag" within that div with that @innertext.
I dont think the repository is an issue at this point for a few reasons. First, the exact same repository with my writing the entire string out for the XPath works. But when I do a find single on the EXACT SAME parent div, and just fill in the rest in code, Ranorex cant find the elements. I would not expect them to act differently. Also like i said in my original post, I have tried many different XPath structures that work in the repo and not in code. My example is just what was the last thing I tried.
Is there any other insight as to what I can try in code to dynamically find this item?