Working on Assignment 2 on advanced training, and I am having a hard time figuring out why the program is not selecting the next month. This is where your program needs to go through each month from January to December, downloading csv files if exists, and skip to the next month if not exists.
What is weird is, my current program works fine and it goes to the next month if the file of a month does not exist. But if it does exist and download the csv file and then delete it, it gets stuck and it wonât go to the next month.
I am using a click activity as instructed in the manual, for selecting the month from dropdown box.
Why does it work when there is no file, and not work if there is a file?
I donât think it is a selector, because it works fine if there is no file. It keeps selecting the next month, until it actually finds a month with a file. After downloading the file, it stops selecting the next month.
I tried adding a delay before click activity used to select months, but it didnât do anything.
Any idea?
For your information, this is Advanced Training - Assignment 2 (Performer) - System1_Create_Yearly_Report.xaml - inside for each loop where it iterates through each month.System1_CreateYearlyReport.xaml (24.4 KB)
Aaaha did you use a attach browser activity to make the bot identify the month field element to click once after savingâŚi think save as will be of different window and as we were saving file out there that window would have got active and making this window with month field inactiveâŚ
So we need to make it active either by using a credit attach browser activity or a click on this screen to make it activeâŚ
Try this and let know buddy @tomato25
Cheers
I have actually thought about it, but that seems to not be itâŚ
I tried clicking the random area of the browser using Click activity after the file is saved.
I also tried putting the entire activities (save file, delete it, etc) inside Attach Browser activity, and I put that attach browser activity inside for each loop, so it attaches the browser every iteration.
But both still donât work.
Buddy i need this to be in a attach window as we need to make some progress here inside the current window after the file gets saved that usually takes place in a separate window and we have a attach window for thatâŚits not the problem
We need a attach window separately to make q click on month field, next after the attach window where we save the fileâŚ
Cheers @tomato25
Okay, it seems to actually be the selector⌠After it got stuck, I always stopped execution, but this time I left it alone. And I got this error where the click activity for selecting a month is:
âClick âBUTTONâ: Cannot find the UI element corresponding to this selector: < html title=âACME System 1 - Reports - Download Monthly Reportâ />< webctrl aaname=âââ parentid=âsearchFormâ tag=âBUTTONâ />â,
I am very confused with this, because this click activity has a selector with a dynamic variable like the following:
where âmonthâ is the variable, and it only receives âJanuaryâ through âFebruaryâ, but never âââ.
I donât know why the error selector contains âââ. Why is it using a different selector after an iteration?
I am facing the same issue. Whats even more strange is that if I run the sequence createYearlyReport separately with hardcode values it runs perfectly.
If you are using attach window or attach browser then the selector will added to the all the activities in side the that activity⌠please cross check your dynamic selector in ui explorer and change the properties wait for ready and timeout