How does Xclick work?

  • Click works inside the HTML page (DOM tree, technically). So this works even if the element is not visible.

  • XClick controls the regular mouse cursor. So it works just like human, it can only click on visible elements.

“Trick”: Use “Click” or another selenium ide-style command to scroll elements into the viewport. So you can first use a Click to scroll the element up. Then it is visible. And then use XClick to send a real user mouse click to it.

image

1 Like