Data Scraping with clicking on links

Hi Everyone,

I have this task where I have to click on multiple links and get information from it. This the the flow i need to do

  1. open website - Open browser activity
  2. select one of the links which will take me to a different page with more links - click activity
  3. click on the table of contents parts (refer to picture1). this will take me to the subparts section (picture2) -
  4. click on each and every subpart link that there is(refer to picture2) -
  5. read text from the page that it takes me - read text activity
  6. put it all in an excel sheet



My question is, how can i make a generalize flow for parts 3 and 4? I read through some of the other forums and I kind of have an idea with using data scraping but i am not sure i understand how i go back tot the links after i scraped the data. It would be wonderful if anyone can help me figure this out.

Thank you!

You can achieve this using dynamic selector, check the selector of 2 or 3 links and see the common difference usually only the table row attribute will vary.
Create a int type variable and initialize it to the table first value and then each time you go and get the values try incrementingthe selector for next case and loop back.

let us know if this helps

Pavan H

once scrapping is doneā€¦send hot key with back button (inside attach window) so that it get backs to the first linkā€¦

Okay so i have extracted the data and I have which elements to click in a data table. Now i am using a for each row, I need to find the element based on the row of the data table and click on it. For this i am using ā€œFind Elementā€ and this is the selector I have:

<html app='chrome.exe' title='title' />
<webctrl css selector='body&gt;div&gt;table&gt;tbody&gt;tr&gt;td&gt;table&gt;tbody&gt;tr&gt;td&gt;table&gt;tbody&gt;tr&gt;td&gt;table' idx='1' tag='TABLE' />
<webctrl tag='TD' />

My question is, how do i change this selector to point to the row I have in the data table? and How do i pass that element to the click function?

Thank you!

1 Like