Hi
I have 3 lists with url links scraped from a webpage. These links are then opened in a new browser tab and the webpages opened are then saved.
This PAD code works:
WebAutomation.ExtractData.ExtractList BrowserInstance: Browser Control: $'''html > body > div > table:eq(2) > tbody > tr > td:eq(2) > a''' ExtractionParameters: {[$'''''', $'''Href''', $''''''] } PostProcessData: False TimeoutInSeconds: 60 ExtractedData=> List1
WebAutomation.ExtractData.ExtractList BrowserInstance: Browser Control: $'''html > body > div > table:eq(2) > tbody > tr > td:eq(1) > a''' ExtractionParameters: {[$'''''', $'''Href''', $''''''] } PostProcessData: False TimeoutInSeconds: 60 ExtractedData=> List2
WebAutomation.ExtractData.ExtractList BrowserInstance: Browser Control: $'''html > body > div > table:eq(2) > tbody > tr > td:eq(0) > a''' ExtractionParameters: {[$'''''', $'''Href''', $''''''] } PostProcessData: False TimeoutInSeconds: 60 ExtractedData=> List3
SET NewList TO List1
LOOP FOREACH CurrentItem IN NewList
WebAutomation.CreateNewTab.CreateNewTab BrowserInstance: Browser Url: CurrentItem WaitForPageToLoadTimeout: 60 NewBrowserInstance=> NewBrowser
END
However, I need to repeat the above code 3 times to set the NewList variable to List1, List2 and List3.
The merged lists does not work as the all the url links become a single line in the variable CurrentItem i.e. url1url2url3.
Is there a better way to achieve the same result?

Report
All responses (
Answers (