Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // extract number of rows
- var rows = parseInt(document.evaluate("//*[@class='ag-status-panel-filtered-row-count']/child::*[@class='data_rows']",document.body, null, 9, null).singleNodeValue.textContent);
- var list_data = [];
- // iterate rows and extract data from cell
- for (i=0; i < value; i++) {
- document.evaluate(`//*[@row-index='${i}']/descendant::*[@role='gridcell' and @col-id='data_to_extract']`,document.body, null, 9, null).singleNodeValue.focus();
- list_data.push(document.evaluate(`//*[@row-index='${i}']/descendant::*[@role='gridcell' and @col-id='data_to_extract']`,document.body, null, 9, null).singleNodeValue.textContent);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement