On element appear value cannot be null

Hi,
i’m doing the assignment 2(performer) and when i do the on element appear to see when the download of a report is finished it gives me this error

onele
onele2

Hi @Mustafa_Hamed

Can you please try to set Repeat Forever property to false?

Thanks,
Prankur

3 Likes

Already done that

2 Likes

No problem, can you please try to use UIExplorer and see that selector is the same which is for the actual element

Thanks,
Prankur

1 Like

ok so this is the selector from UIExplorer

and this is the selector from my On Element Appear

The only difference is the text because the saved file changes every time(the On Element Appear activity is in a for each activity)

1 Like

This works for me

2 Likes

Ok i think you selected the whole bar notification right?, not just the text.

1 Like

Just tryed that same error :weary:

1 Like

@PrankurJoshi the fact is that the process does this activity
selector3

but it stops right after with the error

1 Like

I’ve run it in debug mode and i found out that the problem is in the excel application activity( it’s inside the On Element Appear activty) and it’s the same type of error (value cannot be null parameter name: path)

2 Likes

Please check that you have data in yearlyreport data table.

As an alternative, you can use Element Exists for that popup and have an if/else, If popup exists then your code and something in else part. like this

Do not forget to add some delay after you click on Download button to report’s page

Thanks,
Prankur

3 Likes

Found the problem!
I was assigning the wrong variable it wasn’t ReportFilePath but out_yearlyreportpath.

@PrankurJoshi thanks a lot for your help!

3 Likes

Very well, all the best.

Prankur

3 Likes