Unfortunately, Protractor does not support MouseMove in Firefox browser

I'm fairly new to using protractor and selenium. I've been attempting to replicate the mouse hover action on a button and retrieve values like the position of the mouse pointer and background colors. When I use mousemove, it works perfectly in Chrome but fails when I switch the browser to Firefox. It seems like the webdriver doesn't support this feature for some reason.

it('Mouse cursor should change to hand pointer', function() {   
  browser.get('URL');
  var search = element(by.buttonText('SEARCH'));
  browser.actions().mouseMove(search).perform();
  expect(search.getCssValue("cursor")).toEqual('pointer');
});

When running this code on Firefox, I encounter the following error:

Message:
 Failed: mouseMoveTo
 Build info: version: '3.1.0',                 
 java.version: '1.8.0_121'
 Driver info: driver.version: RemoteWebDriver  
Stack:  
 UnsupportedOperationError: mouseMoveTo

If anyone has any insights or solutions to offer, I would greatly appreciate it.

Answer №1

mouseMove is working perfectly for me. It seems like you may be experiencing an issue with the combination of

Firefox Version - gecko driver version - Protractor Version
. I recommend updating all three components to the latest available versions.

I have tested with the following combination and everything is functioning correctly:

  • geckodriver-v0.9.0
  • Firefox - 45.0
  • Protractor - Version 4.0.10

Answer №2

I encountered a similar issue recently that seems to be linked to the updates in selenium 3.1.0 (after migrating from version 2.53.1).

(node:8989) UnhandledPromiseRejectionWarning: Promise rejection not handled (rejection id: 1): UnsupportedOperationError: mouseMoveTo
Build information: version: '3.1.0', revision: '86a5d70', timestamp: '2017-02-16 07:57:44 -0800'
System details: host: 'EC2AMAZ-GHIOFIE', ip: '10.199.2.240', operating system: 'Windows NT (unknown)', architecture: 'x86', OS version: '10.0', Java version: '1.8.0_121'
Driver information: driver version: RemoteWebDriver
(node:8989) HandledAsyncPromiseRejectionNotice: Asynchronously processed promise rejection (rejection id: 1)

Selenium version: 3.1.0

Firefox version: 51

Protractor version: 5.1.1

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

Enhance user experience with Jqgrid hyperlinked user format

I am currently utilizing jqgrid with JSON data that is structured as follows: {"my_id" : 12345, "doc_number" : 9786} My objective is to implement an hlink formatter that displays the doc_number, while passing the my_id as a parameter to my JavaScript func ...

ensure that angular's ng-if directive sets aside space to display content when triggered by an event

I'm facing an issue with my modal form setup where if a text-field is left blank, a label saying "it is required" is generated below the field, causing the "Proceed" button to move (along with all other elements below it). How can I make sure that DOM ...

Assign the value of an element in an array to a variable using jQuery

https://i.sstatic.net/RtzeT.png In the jQuery variable, I have received an array and now I am looking to store each array value in a different variable. For example, I want to store the Address field in one variable. How can I achieve this? Any suggestion ...

Why am I unable to attach this to JQuery?

$("input").keydown(function(event){ if(event.keyCode === 13){ return false; } }); I need to prevent the default action when the "enter" key is pressed in any of my text input fie ...

I'm looking for guidance on how to properly implement onChange in this particular script. Any help with the correct syntax

Can someone help me with the correct syntax for writing onChange in this script? I want to integrate these phpcode into my script. Here is the Javascript code: ih+='<div class="form-group drop_bottom" id="select_one_'+extra_num+'">< ...

The GeckoDriver and Selenium combination is causing the Mozilla Firefox 68.2.0esr browser to crash

I encountered an issue when attempting to start the Firefox browser using Selenium. The problem is that the browser closes immediately after launching, and I am unable to determine the cause from the log file. Below are the entries in the log file: 15821 ...

Converting JSON to a list using JavaScript

As a beginner in JavaScript, I apologize for asking possibly a redundant question. Can someone guide me on the most effective way to parse json? I am specifically interested in extracting a list of strings under the name Maktg: { "d":{ "res ...

The jQuery form submission functionality fails to execute properly in the presence of a callback function

I have been on the hunt for a solution to this problem, but unfortunately I haven't been able to find one. The issue at hand is that when using the jQuery Submit function with a button and a callback function defined, it doesn't seem to work. Her ...

Obtain the final result once all promises have been successfully resolved in a loop

Here is an array of IDs: let idsArray = [1, 2, 3, 4, 5]; How can I ensure that a promise is returned only after all calls made within the loop are completed? let deferredPromise = $q.defer(), finalResult = []; fo ...

Protractor End-to-End Testing Issue: Module 'selenium-webdriver' Not Found

Error: Module 'selenium-webdriver' Not Found After globally installing protractor and selenium-webdriver with the command npm install -g protractor webdriver-manager update, I encountered an issue while requiring the 'selenium-webdriver&apo ...

What is the best method for closing the open portion of an accordion menu?

I'm experimenting with creating a collapsible accordion feature, but I'm facing a challenge in figuring out how to close the currently open accordion pane. The accordion functions smoothly when expanding sections, but I'm stuck on how to col ...

In Firefox, the parent div's width is greater than the combined width of its children

In Firefox, I am encountering a peculiar problem. The issue arises when I have a div with a height defined in a fixed px value, and an img element nested within it. While this configuration works fine in Chrome, in Firefox, the parent div's width end ...

Accessing the window variable within a Jquery selector in Javascript

I'm encountering some issues while attempting to optimize code. The following lines execute without errors: Array.prototype.forEach.call( $('ZA1 .stat'), function( td ) {//ExcuteCode} Array.prototype.forEach.call( $('ZA2 .stat'), ...

A conflict with the Ajax file is causing an automatic logout

In my Rails application, there is a page with a table that uses partial AJAX to increase the capacity attribute in a time entity. You can view the visual representation of the table here. By clicking the plus/minus button, the capacity attribute increases ...

Encountered an issue with ReactJS app authentication using Firebase and FirebaseUI. Error message reads: "Uncaught Error: Firebase App named '[DEFAULT]-firebaseui-temp' already exists

I'm currently facing an issue in my code. I am working on a single-page web application in ReactJS with 3 tabs. Whenever the user navigates to one tab, the authentication form from FirebaseUI should appear. However, there seems to be a problem as it ...

utilize javascript variables within an HTML document

I keep encountering a strange error (Express 400 Error: Bad Request) Some lines are translated to the variable value, while others just output an error. This is an example of my code: exports.add_comment = function(req, res){ var id = req.params.id; ...

Encountering Error 500 with Jquery Min.Map File

ERROR: GET request to http://domain.com/assets/js/jquery-1.10.2.min.map returned a 500 Internal Server Error Can anyone help me figure out what's causing this error? I checked the log files in /var/log/error but couldn't find any information. T ...

Modifying the value of an HTML5 input type 'color' using JavaScript

In the image, there are pencil and eraser buttons. I would like the input value to change to black when the pencil button is clicked, and white when the eraser button is clicked. Here's what I've tried: <button onclick="$('#color-select& ...

What is the best way to present a unique page overlay specifically for iPhone users?

When browsing WebMD on a computer, you'll see one page. However, if you access it from an iPhone, not only will you be directed to their mobile page (which is easy enough), but they also display a special overlay with a "click to close" button prompti ...

Filtering items in a list using Vue JS by different tags

Within my VueJS application, I have a plant array stored in my state. The array structure is as follows: state: { query: '', tag: '', plants: [ { ...