Here's a way (one of many) to scrape a table without using the 'Get Table' activity from the Toolbox. The table scraped is the w3schools table that is a frequent example.
var items = document.querySelectorAll('#customers > tbody > tr');
var docStr = "";
docStr += element.innerText + "\n";
A view of the resulting .CSV file as opened in Excel (columns manually formatted for viewing):