Hi,
How can i take input from excel column and then search each cell in web(google) and then save back data to excel.
Eg: Let’s just say i have names of cities in column if i want coordinates of those cities
google provides coordinates directly when we type city name + coordinates
and i want those coordinates gets saved back to excel
Fine
Hope these steps could help you resolve this
—use a excel application scope and pass the file path as input
—inside the scope use a read range activity and get the output with a variable of type datatable named outdt
—then use a for each row loop and pass the datatable variable obtained above a string input and inside the loop use a open browser activity
—pass the url where you want to search in the url property and the browser type either chrome or internet explorer along the open browser activity
—inside the open browser use a click activity to click in the search button and use a type into activity and pass the input as row(“yourcolumnname”).ToString along with any strings concatenated so that it will search for the for the result in google
— is use GET TEXT activity and get the result with a string variable as output named out_text
Or
We can use screen scrapping method from design tab in the studio and get the output with a variable of type string
—now use a assign activity and mention like this row(“yourcolumnname”) = out_text.Tostring
Now this will add this string obtained to the column we want to be there in the excel
Simple isn’t it
Hope this would help you
Kindly try this and let know for any queries or clarification
Are you able to do the same for other cities as well ???
If not please share the selectors you get for the other cities we will need to put wild card to get it done in that case!!!
Kindly try with INTERNET explorer browser as it is more compatible with UiPath
–or if we want to use only Chrome then kindly install the chrome extension and restart the studio once and try again to execute Studio - Extension for Chrome.
this error depicts that the variable used in write cell activity has no value in it
kindly check once with a write line activity and mention that variable in it and use this write line activity before to the write cell activity
kindly share the screenshot of the output panel to validate whether the value is getting displayed or not