I want to open .html file in UiPath for scraping data from it suggest a method to get it. So that I can able scrap data from it.
Its a Microsoft Edge HTML Document.
@Gopi_Krishna1 Read Text FIle can read HTML file
you can read HTML File using read text files and extract data from regex
@Gopi_Krishna1
You can also use Use Browser
but before that, you need to enable “Allow access to file URLs” in the extension
@Gopi_Krishna1
can you share that file it seems you have saved any site in HTML view
make sure you are giving a file path like this
“file:///C:/Users/ASUS_PC/Desktop/ACME%20System%201%20-%20Dashboard.html”
%20 denotes space
- You need to use use browser or open application…in that pass the argument as filepath
- Check if the extension settings for accessing local files is enabled
Cheers
Use the Use Application/Browser activity to open Chrome (or Edge or whatever browser you want) and put the path and filename of the file into the Arguments property.
I we double click on that file it’s opening in edge browser, but trying in bot its not opening
In bot do the extension settings and then send the filepath as argument as said
Cheers
@Gopi_Krishna1
please make sure your file paths look like this
“file:///C:/Users/ASUS_PC/Desktop/ACME%20System%201%20-%20Dashboard.html”
%20 means space in the file path as the browser doesn’t understand space in the URL you need to replace space with %20 using var_Filepath.replace(" ","%20")