Attach Browser 'Coronavir Page': Cannot find the UI element corresponding to this selector: <html title=

UiPath Studio Community
Windows 10 (Edge/Chrome/IE)
Task: Download data from website table and save as .csv file
Website: https://www.worldometers.info/coronavirus/#countries

Process flow followed for developing bot:
DataScrapping --> Next --> Click first cell of table “Country/Other” (top left) --> Extract Table “Yes” --> Maximum number of results “0” --> Finish --> No

Runs smoothly after creation but does not work after restarting the UiPath Studio gets

Error: Attach Browser ‘Coronavir Page’: Cannot find the UI element corresponding to this selector:

Which can be fixed with “Indicate on screen” but work does not works after restart, means to work everytime the "Indicate on Screen has to use.

UiPath.Core.Activities.BrowserScope:
Selector:

UiPath.Core.Activities.ExtractData:
Selector:

Link to all project files and screenshots - Google Docs Folder
https://drive.google.com/drive/folders/1IXiKxt9ZVkJYEvj4eJ_vVD7eM2KxIDWD?usp=sharing

1 Like

@Faclon
have a check on your selector e.g Attach Browser or Parent to have it dynamic e.g. like:
<html app='firefox.exe' title='Coronavirus Update (Live)*' />

the important part is the title and ensure no statitistics from the past is included.

Unfrotunately I cannot read / inspect your uplaoded files. But ping us in case of any issues

1 Like

Hello @ppr,
Thank you for your reply.
Everything works fine until the website I used for scrapping is open, the moment I close the website and UiPath app it stops working. I am also enclosing all the screenshots for your reference. I also tried the suggested solution but it did not worked.

Thanks.

1 Like

@Faclon
run this demo multiple times and check if it is grabbing the data
Faclon.xaml (6.9 KB)

1 Like

@Faclon
I had quick view on your download xaml
As mentioned you used a selector coding with too much specific information that will change over time
<html title='Coronavirus Update (Live): 2,482,158 Cases and 170,470 Deaths from COVID-19 Virus Pandemic - Worldometer' />

run my XAML from above and have look on the selector with * usage

1 Like

Thanks @ppr,

I got the following error (similar to mine) after running the project provided:
Attach Browser ‘Coronavir Page’: Cannot find the UI element corresponding to this selector:

Regards,

1 Like

@Faclon
can you please have a look on your last post and notice that we cant see the selector. use the grafik button and format the selector code with this. This will help us Thanks

1 Like

Hello @ppr,

I tried before but I am getting the same error. I am getting the same error with every browser. The code works fine after creating and repairing, but the same code is not working after I restart the browser and app.

Best regards,

1 Like


1 Like

Working after creating:


But not working after closing browser and restarting app.

1 Like

@Faclon
you did your test with which Browser?

1 Like

I tried Chrome, IE, Firefox and Edge. All are throwing same error. Working fine after building and repairing but fails the moment I restart the browser and UiPath.

1 Like

@Faclon
IT Looks Like a selector issue. You give Browser Name specific information without Wildcard es title into the Tests.

Rerun my xaml in an Opened Page and Let US know If this was working?

1 Like