Fortunately the url parameter ends with the page number. The image above is the first page.
I can loop through next pages with pageCounter variable that I created.
However write range activity works only in the first page.
You can get number of last the page and put it into variable, for instance : lastPage
Then, create another integer variable(int start = 1), and use For Each activity to increment that variable until last page. For Each activity would be : for each item in Enumerable.Range(start, lastPage).
Of course, perform actions you need between switching pages.
In order to go to the next page, insert Click activity and indicate on the any page number.
Also, in the selector, which is most important thing - set idx attribute to pageCounter(start from 1)
Thanks for your answer. Clicking on the other page numbers worked perfect but still the write range activity is not working. It’s always empty after running on a couple of pages.
Do you mind if you take a look at the xaml file. HepsiBuradaBooks.xaml (11.7 KB)
Thanks
Hi @sehz4d I checked your xaml file in this logic you gave a page number but in real time we don’t know how many pages are there.Actually you said 33 pages but now it is 34 pages so in real time it will increase or decrease the pages so we need to do dynamically.It did that check the my xaml file.
And one more thing did you face any issue in data scraping.actually i faced parentID issue it is generating new ID to every page.so for that i get parentID everytime and added to selector.
In this issue another solution is there remove the id and add the class but here technical issue is there sometime website will be change that time definitely classes will be change so for that i used parentID
Thanks @ashishsinha1504 . At the beginning I was able to loop through the next pages while using pageCounter variable. but the issue was the new parentID at every page
@pradeepRPA. Because of your solution has click activity it is slower than @Ishmeet_Bindra 's solution .
Of course without your help I couldn’t solve the problem
Here i used element exists so it will check the number it is useful to real time and i added delay also for that particular site sometime it slow.Anyway finally you got a solution that is good thing.