Substitute approach for Marionette driver action class

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();

Answer №1

One option is to stick with Firefox version 46 or lower until Marionette catches up in capabilities with Firefox Driver.

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Utilizing JQuery to autofill input fields with first and last names upon clicking a button

Looking for a solution to automatically populate an input field with the first name, last name, and @whateveremail.com (e.g., [email protected] where the first and last names are separated by a dot) when a button is clicked. Any assistance on this m ...

Angular 6: Dealing with Type Errors in the HttpClient Request

I am encountering issues with my services. I am attempting to retrieve a list of media files (generated by NodeJS, which generates a JSON file containing all media items). Although I can successfully fetch the data, I am facing an error stating "Property & ...

Fixing JavaScript Image Swap Bugs

Seeking assistance with a JavaScript Image Swap creation. Can anyone provide guidance on identifying coding errors in my JavaScript? Any help or pointers on correct usage of getElementById would be greatly appreciated! <title>Photo Gallery</tit ...

Adding Rows to a DataTables Table

I am currently working on dynamically adding <tr/> tags to a DataTable, but I am struggling to find detailed documentation on how the process of "adding TR" is meant to be executed. Below is the setup of my DataTable: $("#Grid").DataTable({ state ...

How can the values of an array be adjusted?

Currently I am working on an inventory script to display the player's inventory using an array. I am having trouble setting a .amount property as I am encountering undefined errors when attempting to set them. Unfortunately, I am unable to utilize set ...

Evaluating the capabilities of a Java class with the assistance of Selenium

https://i.sstatic.net/B3Uxl.pngHow can users select their preferred language and have the website load with that language? I am looking to update my current code to accommodate this scenario. Here is the snippet of the code: public class Steps { ...

The plugin needed for the 'autoprefixer' task could not be located

Starting out in the world of Angular 2 development can be overwhelming, especially when trying to integrate with the Play framework on the back-end side. I recently came across a helpful post by Denis Sinyakov that walks through setting up this integratio ...

Efficient manipulation of byte[] in Java

I am currently working on developing a Java application designed to operate on an embedded device. Given the limited processing power of such devices, performance is indeed a crucial consideration. I recently came across concerns regarding the speed of j ...

What's causing the error message "button.addEventListener is not a defined function" to appear on my screen?

Could someone shed light on why I'm encountering the error message mentioned above while using this code? It's functioning properly on jsfiddle, but for some reason, it won't execute in the browser. var bladeRunnerButton = document.query ...

PHP and Bootstrap combine in this dynamic carousel featuring thumbnail navigation

Looking to create a dynamic bootstrap carousel with image thumbnails at the bottom? After exploring various code snippets and solutions, I stumbled upon this link. While the code worked, I found the thumbnails to be too small. Below are the functions I use ...

What is the best way to execute the Maven exec plugin multiple times during a build process?

Here is a snippet from my POM file - <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>exec-maven-plugin</artifactId> <version>1.5.0</version> <executions> <execution> ...

sorting an array using key and value criteria

How can I use Underscore.js to filter an array based on a specific key and value? Currently, my code searches for all fields' values, but I only want to search based on the key and value. Can you provide guidance on how to achieve this using Underscor ...

What steps can I take to address the issue of missing @angular/Core modules?

I am encountering an issue with running my Angular 2 project. Here's what I have tried: - Attempted to run the project using npm install and npm start, but it did not work - Cloned a quickstart from Github and replaced it with my src folder, only to ...

Selenium in Python fails to locate an element (empty result returned)

My Python code snippet is below: elements=driver.find_elements_by_id("folder_c0fb056b-f83a-495e-9db1-dd1b19942eaa") print(elements) After running the code, the result returned as [ ]. This approach has worked successfully for other sections of the websit ...

JSON response is not being successfully passed in PHP Ajax form validation

I've been struggling to solve my code for the past few days but haven't had any success. I'm attempting to validate my login form using AJAX, however, it seems like there's an issue with my Jquery AJAX script. Every time I try, the con ...

Simple method for detecting collisions between objects by projecting their shapes onto one

For the past few days, I've been delving into the world of Vectors and doing some research, but I'm still struggling to fully grasp the mathematics involved. In my code, I have two AABB's. When they collide, I want the method to return a Ve ...

Selenium - element cannot be found

Having some trouble with entering text into a text box, here's the error message I'm receiving: An error of type 'OpenQA.Selenium.ElementNotVisibleException' occurred in WebDriver.dll but wasn't handled in user code It says that ...

PHP issues caused by Ajax form compatibility

I'm currently working on developing an upload website and I've encountered some challenges while trying to implement an upload progress bar. The Ajax form in my scripts seems to be causing issues with the PHP code, preventing the file from being ...

Finding specific text within an element in Selenium using Java, even when the text is partly variable

Looking for the counts of Requeues, App Exits, and Greets Started in the following element. I will also need to validate the counts for each event. <div _ngcontent-ome-c213="" class="counts"> 0 Requeues<br _ngcontent-ome-c213=& ...

Mastering HtmlUnitDriver with Selenium in Python: A Step-by-Step Guide

Currently, I am utilizing selenium-4.1.0 and my quest is to find the most lightweight webdriver for optimal speed. I came across HtmlUnitDriver, however, when working with python, it is a necessity to initiate a selenium server before attempting to use t ...