Guys, I ran across a very weird issue while trying to solve the Performer assignment.
Initially I wrote the robot for Firefox, but that one would fail randomly as it was impossible to select the html error popups of ACME, and it was especially hard to get the OCR text after the upload.
So, I re-wrote the whole Performer for Internet Explorer, and there the selectors for the popup worked without much effort in plain (non-image recog) mode. I wrote the main loop of getting the monthly reports: year gets selected fine, month gets selected fine, popup detected fine and dismissed, then next month updated fine…
All works neatly until I successfully save the first file ( it gets saved, no exceptions). Irrespective if I dismiss or not the small download bar at the bottom, the next month does not get selected anymore, nor does it throw an exception. It simply hangs as if suddenly it would not find the month drop-down anymore.
I cannot imagine what can happen to the selector that changes after the first successful save.
I’ve spent days on this now, and tried tens of ways of formulating the selector, including dropping the idea of using a global Browser pointer that I pass on to every module whenever I attach a browser, and tried an absolute selector instead in the System1_CreateYearlyReport.xaml. It did not make a difference. Re-created the whole file from scratch, did not use copy paste, that also made no difference. I’m clueless…
This is my selector (works fine until first successful file save. “item” is my iterator for the months):
"<html title='ACME System 1 - Reports - Download Monthly Report' /><webctrl aaname='"+item.ToString+"' parentid='searchForm' tag='A' />"
"<html title='ACME*' /><webctrl aaname='"+item.ToString+"' parentid='searchForm' tag='A' />"
Tried also to use anchors where the anchor would be the Month: object on page.
"<webctrl aaname='Month:' tag='LABEL' /><nav up='1' /><webctrl aaname='"+item.ToString+"' parentid='searchForm' tag='A' />"
Seen in the guidance that when dismissing the bottom IE bar after a save I am suppose to remove the variable part of the selector, but I cannot find any variable part:
Thanks upfront for any guidance!