§
Δημοσιεύτηκε: 20/05/2021

Hello.
Please help make the right script, for clicking on the button.

Link on part of the code: https://pastebin.com/JFsvC5Eq

§
Δημοσιεύτηκε: 20/05/2021
Επεξεργάστηκε: 20/05/2021

All you have to do is get the element and add .click() on the end

document.querySelector("#load1822570").click()

§
Δημοσιεύτηκε: 20/05/2021

All you have to do is get the element and add .click() on the end

document.querySelector("#load1822570").click()

Yes, it works!
But only for one task :(
Because in "#load876431 " there is an identifier. And he different, for each task.
What to do in this situation?

§
Δημοσιεύτηκε: 20/05/2021
Επεξεργάστηκε: 20/05/2021

document.querySelectorAll('[class*="insidebtn"]').forEach(el => el.click())

document.querySelectorAll('[onclick*="proverka"]').forEach(el => el.click())

§
Δημοσιεύτηκε: 21/05/2021

document.querySelectorAll('[class*="insidebtn"]').forEach(el => el.click())

document.querySelectorAll('[onclick*="proverka"]').forEach(el => el.click())

Now clicks occur on all buttons at once, \ they're there 20
Is there any way to make the click happen only on the very first button?

I can give the full page code if needed.

§
Δημοσιεύτηκε: 21/05/2021
Επεξεργάστηκε: 21/05/2021
document.querySelector('[class*="insidebtn"]').click()

or

document.querySelector('[onclick*="proverka"]').click()
§
Δημοσιεύτηκε: 21/05/2021
document.querySelector('[class*="insidebtn"]').click()

or

document.querySelector('[onclick*="proverka"]').click()

Now everything works correctly.👍
Thank you very much!🙂

Δημοσίευση απάντησης

Συνδεθείτε για να δημοσιεύσετε μια απάντηση.