I will explain my question with an example, I work on a script, and I do not correctly record the span in the console.
I take a specific element in the row and in the column and write it into a variable, after such operations I output everything to the console to check the log for everything and see what I see in the screenshot, but Object ObjectList, I expected a different result, I was expecting 2 The option to write to a variable is either span.GoodNumber or span.BadNumber.
But I do not know why it is the Object NodeList that is being written. If anyone can explain how to write it all down correctly, I will be grateful.
UPD:
I expect to get from this selector value = span.BadNumber or span.GoodNumber for the code block where I will equal the values
This is my code:
let value1 = document.querySelectorAll('table.BetsTable > tbody > tr.MyBet:nth-child(1) > td:nth-child(5) > span'); let value2 = document.querySelectorAll('table.BetsTable > tbody > tr.MyBet:nth-child(2) > td:nth-child(5) > span'); let value3 = document.querySelectorAll('table.BetsTable > tbody > tr.MyBet:nth-child(3) > td:nth-child(5) > span'); Then:
if (value1 && value2 && value3 === BadNumber) BadNumber variable to write to (document.querySelectorAll('table.BetsTable > tbody > tr.MyBet > td > span.BadNumber'))
I downloaded another site, the logic is this, you need to check for BadNumber from the first three lines of profit, if all 3 lines are equal to BadNumber, then the script is launched.

