Hi All,
I have a table of data in the website and want to click the hyperlink by searching the Series Name and click the link. But clicking the hyperlink is dynamic, which means the row position changes.
Data Scraping // Extract the table data and store it in a variable (e.g., ExtractedTableData)
For Each Row // Iterate through the table data
Input: ExtractedTableData
If // Check if the Series Name matches
Condition: row(“Series Name”).ToString = “Your Series Name”
Click // Perform the click action on the dynamic hyperlink
In the website click on the hyperlink cell and change the selector of tablerow and initialize a number to 1 and increment after every iteration
I cant use “aaname”, because the link is not unique. See the table format, series ABC and GCF are having same seriesLink, here I want to click GCF link - Link1. Combination of SeriesName and SeriesLink will give unique row. I tried to extract the below table in datatable format and iterated each row and got the row number which I am expecting. But don’t know how to click the link( href is set to javascript:reqid(1234)). Click event not triggered for this href.
Initialize the variable outside the for loop as integer and assign the value as 1(give the value in which the tablerow attribute of first row holds).
For each iteration increase the value by 1.
Give that variable in the TableRow attribute.
Thanks for your reference, but still can’t make a solution for my problem.
I attached the screenshot of my actual website and what I am trying to achieve in the page.
For datatable, I am finding the “Series Type” text and assigned the below table to datatable, after that iterated to each row in the table to get the “POI” Name and want to click Series1, Series2 and Series3 next to next.