simonradier / node-red-contrib-simple-webdriver

SimpleWebdriver nodes for Node-RED initially based on node-red-contrib-selenium-wd2
Apache License 2.0
14 stars 7 forks source link

Click On Feature Request #15

Closed leopoldoferreira closed 1 year ago

leopoldoferreira commented 1 year ago

@simonradier could you please add a feature to the Click On node?

I would be very glad if on Click On, one could choose between left,right or middle click, multiple times, with a set delay between, just like this one from node-red-contrib-puppeteer-new image

On a side note, could you hit me up at leopoldoferreira@live.com with an email of yours? I would love to ask some stuff to you Thanks in advance!

simonradier commented 1 year ago

Hi @leopoldoferreira,

For the "Left, Right & Middle Click", I'll try to add it, but it is more complicated than it looks. The webdriver standard has the element.click which is only left click. Other type of click relies on "Action" API which is more complicated to use. It requires to detect the retreive the position of the element, scroll to it and then move a "cursor object" to it. My ETA is at least few weeks.

For the loop part, I'm still thinking if it should be embedded in the click node. It creates few questions which must be addressed. I may implement this part but later and it could be addressed with a function node.

Best regards,

leopoldoferreira commented 1 year ago

@simonradier , as of right now I don't need anymore, since you made the script node, yesterday I did a work around and did what I needed. Thank you very much for this palette. I'm a fan of your work! Since you said its not easy and I dont need, you can close this because I'm good already 👍