Pushing scraped content into the Downloads folder

I have a macro that successfully scrapes a table and saves the output to the downloads folder (win11). The table has thousands of rows, of which only a fraction can be seen at a time. The macro scrapes a page and advances to the next set of rows. I duplicated the macro and changed two targets with the hope that it would work on a different website (see the picture below). The macro runs, but no output file is saved to the Downloads folder. Why? (log at the bottom)

Line 2 scrapes the page. I have tried both “StoreText” and “StoreValue” with the new code with no change in result.
Line 4 clicks a link to advance the table to the next set of rows

[status]

Playing macro MSTAR-1

[info]

Executing:  | times | 1 | 1 | 

[info]

Executing:  | storeValue | xpath=//*[@id="screener"]/div[2]/div[2]/div[2]/div | !csvLine | 

[info]

Executing:  | pause | 500 |  | 

[info]

Executing:  | click | xpath=//*[@id="screener"]/div[2]/div[2]/div[3]/div/div/div/nav/div[2]/button[2]/span |  | 

[info]

Executing:  | end |  |  | 

[info]

Executing:  | times | 1 | 1 | 

[info]

Executing:  | csvSave | DataUI |  | 

[info]

Macro completed (Runtime 3.65s)

difficult to troubleshoot with image
can you share log or video?

[status]

Playing macro MSTAR-1

[info]

Executing:  | times | 1 | 1 | 

[info]

Executing:  | storeValue | xpath=//*[@id="screener"]/div[2]/div[2]/div[2]/div | !csvLine | 

[info]

Executing:  | pause | 500 |  | 

[info]

Executing:  | click | xpath=//*[@id="screener"]/div[2]/div[2]/div[3]/div/div/div/nav/div[2]/button[2]/span |  | 

[info]

Executing:  | end |  |  | 

[info]

Executing:  | times | 1 | 1 | 

[info]

Executing:  | csvSave | DataUI |  | 

[info]

Macro completed (Runtime 3.65s)

There is no error
Not possible to troubleshoot without access to web page

It’s behind a paywall. What do you advise?

do manual recording
click element you want text to be saved
make changes
see if it works

Just to clarify, so the old code works fine but on a different website? Or on the same website?

It works fine on a different website. Both the old and the new websites have a similar design and the scraping problem is the same: scrape the data, advance to the next page, scrape again, advance again, etc.

The problem and the solution requires only two website specific pointers: (a) the material to be scraped, and (b) the HTML to be clicked so as to advance to the next page.So, I took the code that worked on the one website and changed the pointers to reflect the new website. For the new website, the code appears to function without an error, but it doesn’t seem to create any output.

Like i said
Do recording
Click text element
Change it and test
Or
Need access to verify xpath

Executing: | storeValue | xpath=//*[@id=“screener”]/div[2]/div[2]/div[2]/div | !csvLine |

Assign to variable and execute this command
Does variable has value?

Based on what you see in the code, would you expect the output (if any) to appear in the “Downloads” folder?

The original code writes to the Downloads folder so I assume that the new version does as well; but I’m not certain and I need to eliminate this as a reason for the code failing to achieve its purpose.

Without access to element not possible to troubleshoot

Csv is saved in datasources folder
Check xmodules settings
Note folder location

I do wonder if your “storeValue” command points to noting. That would explain the issue.
I would save the storeValue in a variable and check if it shows any value. If not, your xpath expression is wrong.

The macro runs without saving an output file because, on the new website, the scrape command is not actually capturing any data, even though it executes without throwing an error. This usually happens when the target element exists visually but is different at the DOM level Equifax Check Your Credit