johntitus / node-horseman

Run PhantomJS from Node
MIT License
1.45k stars 124 forks source link

How do I click on a swal alert using node-horseman? #244

Open faisalAvizia opened 7 years ago

faisalAvizia commented 7 years ago

I am trying to click on a confirmation button on an alert and I am not able to. While using .visible(), the alert is false but it is there. The test does not throw an error, it acts as if it clicked. I'm assuming it does not do the click since the element is NOT visible.

How do I click on a sweetalert using node-horseman?

awlayton commented 7 years ago

Could you post an example for reproducing the problem? Also, I'm pretty sure the element does not need to be visible for .click() to work.