Previously, I had code to draw a rectangle in Selenium WebDriver which worked fine. However, after switching to Marionette driver, it stopped working because the Action class is not supported. I am looking for an alternative solution similar to using the Robot class in JavaScript, but unfortunately that won't work on a remote system where the script will be running.
Here's the code snippet:
Actions builder = new Actions(driver);
builder.clickAndHold(shareview).moveByOffset(AppGlobalConst.X, AppGlobalConst.Y)
.moveByOffset(AppGlobalConst.Y, AppGlobalConst.X).moveByOffset(AppGlobalConst.Z, AppGlobalConst.W)
.moveByOffset(AppGlobalConst.W, AppGlobalConst.Z).release().perform();