You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**here in the code snippet, we query by all rows using rowgroup and store the count and then iterating using for loop and find the td element in each row, using the index await within(tableRows.nth(i)).queryByTestId(/year/).textContent(); like this.
Instead of using the index and looping thru, I would like to use forEach and map to iterate, to avoid using traditional for loop with indexing ie i etc. is there any other way to loop thru the tables , other than traditional for loop with indexing? Can you please advise:**
Error:
when i used map or forEach tableRows.forEach(), TypeError: tableRows.forEach is not a function
This is the output -tableRows Locator@query-by-test-id=["paged-table-IFVacationAuctionSummaries"] >> get-all-by-role=["rowgroup"] >> nth=1 >> get-all-by-role=["row"]. ------> Can i not iterate thru tableRows using forEach or map , Can you please advise?
**here in the code snippet, we query by all rows using rowgroup and store the count and then iterating using for loop and find the td element in each row, using the index await within(tableRows.nth(i)).queryByTestId(/year/).textContent(); like this.
Instead of using the index and looping thru, I would like to use forEach and map to iterate, to avoid using traditional for loop with indexing ie i etc. is there any other way to loop thru the tables , other than traditional for loop with indexing? Can you please advise:**
Error:
when i used map or forEach tableRows.forEach(), TypeError: tableRows.forEach is not a function
This is the output -tableRows
Locator@query-by-test-id=["paged-table-IFVacationAuctionSummaries"] >> get-all-by-role=["rowgroup"] >> nth=1 >> get-all-by-role=["row"]. ------> Can i not iterate thru tableRows using forEach or map , Can you please advise?
Below is the table html
The text was updated successfully, but these errors were encountered: