Partially Solved:
I’ve avoided the CLICK block not working executing this JS:
document.querySelector( 'your class here').click();
You also can use this if your button have an ID
document.getElementById("your id here").click();
I had no luck and spent 4 hours looking for it, unfortunately I don’t understand javascript so I was testing one by one.
If you have the same problem, go on inspect element > then click right-button > copy as > class
This are not an final solution, the problem still persist as you can see in first print “Clicked 1 times with left click” but no got value message.
Hi,
When we click with puppeteer he simulate a mouse click in a button, and triggers all actions linked to the button.
If we click on a href link, he should navigate to link
If we click on submit button, he should trigger the action to submit the form
I am right?
Here is what is going on
Click and nothing happens.
I had noticed this before, I avoided the problem by capturing the value of href and navigating directly to it, however, now I need to submit a javascript form and I’m in trouble
How to solve? I was wondering to call click with JS execute
But got this error
// JS EXECUTE BLOCK
document.evaluate("//*[@id="root"]/div/div/div/div/div[2]/div[2]/div[8]/button/span[1]").click();
Execute JS (PuppeteerExecuteJs)
Execute JS (PuppeteerExecuteJs) <<
[Executing block Execute JS] EvaluationFailedException: Evaluation failed: SyntaxError: missing ) after argument list
BOT ENDED AFTER 56469 ms WITH STATUS: ERROR
What I miss?
EDIT:
I’ve avoided the CLICK block not working executing this JS:
document.querySelector( 'your class here').click();
You also can use this if your button have an ID
document.getElementById("captcha").click();
I had no luck and spent 4 hours looking for it, unfortunately I don’t understand javascript so I was testing one by one.
If you have the same problem, go on inspect element > then click right-button > copy as > class
This are not an final solution, the problem still persist as you can see in first print “Clicked 1 times with left click” but no got value message.