For each loop doesn't continue to next iteration on end (Assignment: Generate Yearly Report for Vendor)

Hi,

Hopefully I’m posting in the right place.

I’m doing the academy training (assignment: Generate Yearly Report for Vendor). In the sequence to create the yearly report one of my loops won’t continue.

The problem is in the file: System1/System1_CreateYearlyReport.xaml. The for each works as should, when there is no report to download, the next ieteration starts. When there is a report to download, it does everything it’s supposed to. After the download is complete the next iteration does not start. Can’t seem to find out why.

EDIT: The loop does iterate, but the next month is not selected, can’t seem to find a problem with my selector:

"<html title='ACME System 1 - Reports - Download Monthly Report' /><webctrl aaname='"+month.ToString+" tag='A' />"

Any help would be greatly appreciated!

For each pt 1

For each pt 2

Code.zip (33.9 KB)

@Lennart Hi you missed single quote after
month.tostring+"
Try below selector once and check

“<html title=‘ACME System 1 - Reports - Download Monthly Report’ /><webctrl aaname='”+month.ToString+“’ tag=‘A’ />”

1 Like

@Manjuts90 Thanks man. This solution has helped me.

1 Like