Hey Guys, this one has me pulling my hair
Im using a HR system, and in it theres a digital signature feature that uses some sort of embedded Internet explorer window. In it there are two fields that dates are entered into. Then the robot clicks a button to continue. However, that button wont show up unless the dates are entered AND the datepicker field is clicked(the date that is marked in blue).
The selector that used to work for that Click activity looks like(hade to remove the < and >):
uia role=‘table’ /><uia name=‘{{Datevariable}}’ role=‘item’ / uia name=‘{{Datevariable}}’ role=‘text’ /
“Datevariable” is the date that is assigned earlier in the process.
Now that issue is that if the datepicker is open and the date is for example the 28th as seen below, there are 2 matches for “28” which is the date used.
The robot will then pick the first one which is not the right one(the one marked in blue).
So what i want the robot to do is ignore the first match and use the second one. Basically: if there are two matches for this variable, use the second. It is not possible to read the enitre datepicker box either so i cant check for duplicate dates in it.
It might be noted that the previos selector used looked like:
html app=‘lime.exe’ title=‘E-signering’ /
webctrl idx=‘1’ tag=‘TABLE’ /
webctrl tag=‘TD’ class=‘day active’ /
It seems to use the class:day active to identify the date marked in blue. The selector does not work anymore though, not sure why(i didnt create it).
Hope this makes sense, i totally get if it doesnt! let me know what i need to clarify.