I am trying to extract all links related to a certain search. The problem is that only a couple of results are displayed when the results list is loaded, and that additional search results are only loaded when you scroll down to the bottom of the page. So I do not have the option to indicate a next button or something of the sort to tell UIPath where it can find the next batch of links to look for and scrape.
Do you have any idea how I could solve this so that UiPath will scrape all the links the search returned?
Unfortunately I cannot provide a link due to it being an internal website.
I solved it by sending the hotkey end and looping it until the process does not find the image āLoading new resultsā¦ā any more, which is displayed at the bottom of the page if there are more results to be loaded.
Maybe this helps someone who is encountering the same issue.
Sure. I simply put the Send hotkey and Image exists activities in a Do while activity.
The hotkey I kept sending was āEndā to make sure it scrolls to the bottom of the page. For the image exists I made a screenshot of the message āLoading messagesā¦ā (due to the fact that I think every webpage which uses this way to load more results shows some kind of message while loading them, this should be universally applicable). The condition for the Do while was the result of the check made by the Image exists activity, which outputs a boolean variable. So as long as the variable āMoreResultsAbailableā (=variable name of your choice) is true, it will keep sending the hotkey.
Once all results are loaded the Image exists wont find the image any more, āMoreResultsAvailableā is false and the process will continue with whatever it is supposed to be afterwards.
Unfortunately I cannot provide any screenshots because it is an internal website.
The steps should be in this order:
Do while
inside it should be the send hotkey END activity and then an image or element exists activity to check for the loading results message. The result of the exists activity is a boolean variable (name it e.g. MoreResultsAvailable), which is the condition for your Do While (=> while MoreResultsAvailable = True, keep sending hotkey).
My criteria is i need to get all the Names in the screenshoot and only scroll bar button is used to display the next set of data.Attached is the screenshoot with the scroll but i am not able to do data scrapping for all the 43 Names.When i am doing Datascrapping i am not able to get total 43 names but i am getting 24 Names. If you have any Solution Please help me out.
In my case when i use Data Scrapping and write the extracted data into excel using Write Range activity under Excel Application Scope. Sometimes the whole process runs perfectly fine, but most of the times, while Data Scrapping the pages wont traverse or i get Null exception in Write Range.
Can anyone help me on this.
Thanks Inadvance
Shrunga