I'm building a checkout bot but I'm having trouble with those stupid "enter your phone number to receive a text message" pop-ups where the element I tell the bot to click appears on the screen but the bot doesn't click on it . This is my first project using JavaScript and I have no idea what I'm doing and I'm currently learning a lot as I go along, but I'm really stuck here and can't find what I'm doing wrong.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
|
This is just a small part of the code, I'm having an error on this part because I can't post the full code or it will be viewed as spam.
P粉0526867102024-04-05 15:09:49
Your selector is wrong, please change it
1 |
|
for
1 |
|
To use it for click actions, you can store it in a variable:
1 2 |
|
See https://developer.mozilla.org/en-US/docs/Web/API/Document/querySelector to use selectors in the console.