I will hold the string to search in one variable and I use it inside the while loop, if the string is not found in the first page need to scroll down, if the variable is not found till the end of the page need to come out of the while loop.
Use Hot key Ctrl +End will take u to the bottom of the page. Agree with looking for any text or something else for next page. If it doesn’t exit then it’s the last page. Use Data scraping it’s help u better…
Page size may vary
Use PageDown as Hotkey , doesn’t matter of Page Length
Hope it works !!
Hi @Krishna_547 ,
I have used page down now, but the pages are dynamic, sometimes there will be single page, so I need to know how more efficient can be done
- Set focus on First element
- Read the element and store in one variable
- Do the necessary processing
- Click down to focus on next element.
- Read the element and store in another variable.
- Check is both elements are same? compare variable (2) with variable (5)
- If same, => end of page reached (as you will be clicking down arrow, scrolling will automatically happen). Check for next page and repeat the steps
- If not same, repeat steps from 3.
@Megha_D_Gowda - Displayed window load the items while performing the scroll/page down action?
you can try below
1 - Send Hot Key → select the screen → input as ‘pgdn’ or ‘scroll’
2 - Use custom ScrollActivity activity “NuGet Gallery | ScrollActivity 1.0.2”
It takes two arguments
- up (True of False): tells the activity to scroll up or down
- amount (number): tells UiPath how much to scroll. 1 = ± 120 pixels, 2 = ± 240 pixels …
- Indicate the correct element pane to scroll.
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.