HtmlUnit is a GUI-Less browser for Java programs that can do a lot for us, but not everything. And, as you have noticed, it has no support for operations such as and

new UnsupportedOperationException("Moving to arbitrary X,Y coordinates not supported.");

contrary to other drivers, like -, in which one your example should fine.

However, if you still need it to work with a web testing, there’s an option with PhantomJS. Yes, it is focused for JS testing, but there is a great project called Ghost Driver (a implementation of Wire protocol in simple JS for PhantomJS) that enables Java bindings along with Selenium API



Source link https://sqa.stackexchange.com/questions/35341/drag-and-drop-does-not-work-with-headless-chromedriver

LEAVE A REPLY

Please enter your comment!
Please enter your name here