selenium-webdriver waits for mouse movement before proceeding

Currently, I am creating test automation using Selenium, Protractor, and Jasmine for an Angular web application. The tests are being run within VirtualBox (Host OS: Windows 8, Guest OS: Ubuntu 15.04). At this point, the test is quite basic, with the onPrepare function logging in and waiting for the app to load, followed by a check to verify the loaded page has the correct title.

The app successfully loads and logs in. However, a problem arises where the test does not continue until the mouse is moved, specifically while hovering over the browser's content area.

1) Without any mouse movement, an error eventually appears stating: "Error: Timeout - Async callback was not invoked within timeout specified by jasmine.DEFAULT_TIMEOUT_INTERVAL."

2) Moving the mouse over other windows or non-content areas of the browser window results in the same issue.

3) Only when the mouse hovers over the browser window's content area does the test proceed immediately.

I shared my code with a colleague who ran it on a Mac without experiencing the same problem. This suggests that the issue may be related to running the test inside VirtualBox, though I cannot confirm this completely.

After searching through Google and Stack Overflow posts, I could not find similar reports of this behavior. Additionally, adjusting default timeouts in Jasmine and Protractor did not resolve the issue:

  • jasmine.DEFAULT_TIMEOUT_INTERVAL = 250000
  • allScriptsTimeout: 300000
  • getPageTimeout: 300000

Since this is my first question posed on Stack Overflow, if there is additional information typically required for these inquiries, please inform me, and I will provide it promptly.

Answer №1

Encountering a similar issue, I was unable to identify the exact cause or a permanent fix. As a temporary workaround, I implemented a solution where the mouse is moved post-click event.

browser.actions().mouseMove({x: 50, y: 0}).perform();

Subsequently, the test executed as expected without any issues.

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

Cannot bring in the module 'selenium'

I'm facing a seemingly simple issue that has me stumped. Despite installing selenium and chromedriver with the correct version for my browser, I keep receiving an error message in VSCode that reads "Unable to import 'selenium'." Here's ...

Achieving proper variable-string equality in Angular.js

In my Angular.js application, I am utilizing data from a GET Request as shown below. var app = angular.module('Saidas',[]); app.controller('Status', function($scope, $http, $interval) { $interval(function(){ ...

What is the best way to dynamically reference an HTML file based on the value of a JSON data description, using the description as the filename

Here I have created a sample file which is currently working fine. However, my requirement is to call the HTML elements from a separate file and only reference the external file name in the Description field. Is it possible to achieve this by specifying th ...

The PKIJS digital signature does not align with the verification process

Explore the code snippet below const data = await Deno.readFile("./README.md"); const certificate = (await loadPEM("./playground/domain.pem"))[0] as Certificate; const privateKey = (await loadPEM("./playground/domain-pk ...

Choosing a datepicker in Selenium can be easily done by identifying the date

Hello, I need help selecting a datepicker from an image. I am trying to select the date 27th March 2016. https://i.stack.imgur.com/OW80A.png Here is the code for the datepicker: <div id="widget_dijit_form_DateTextBox_6" class="dijit dijitReset dijitI ...

Comparing the utilization of ng-model versus a custom attribute for achieving two-way binding within a custom directive

When creating a personalized form input directive, should I utilize ng-model or my own custom attribute called my-val? The end result I'm aiming for is two-way binding, where modifying the input field automatically updates the model on the $scope, an ...

What are the placeholders for the "localIdentName" query tag in a custom CSS-loader for Webpack?

Just starting out with Webpack and experimenting with the css-loader. I came across the option to specify a localIdentName query tag on the Github page under "Local Scope". This tag allows us to define our own custom values for how classes should be named ...

Transitioning to Firebase Authentication

I made the decision to transition away from firebase authentication. To accomplish this, I exported all firebase users along with their email addresses, hashed passwords, salt keys, and other necessary information. Next, I transferred them to a database a ...

Creating an HTML button to reveal additional text on the same page

Currently, I am working on a project involving html and javascript. My issue lies in displaying multiple options on the same webpage without switching pages. Essentially, I have a plot and a few buttons on one page, and when a user clicks on any of these b ...

Is there a way to automatically hide a div based on a checkbox value when the page loads?

How can I hide a div in my view when a checkbox is not checked upon page load? <input type="checkbox" class="k-checkbox" id="chkInvoiceStatusActive" asp-for="InvoiceStatus" value="true" /> <input t ...

Utilize JavaScript to include HTTP headers in image requests

In my JS/HTML5 Project with angularjs, I have implemented protection for my API by setting an authorization token in the HTTP header. Now, I am also looking to secure access to images stored on the server. While I know how to accomplish this on the server ...

Ways to resolve - Error: Unable to access 'comments' property of null

I am currently working on developing a blog web application and I am facing an issue with enabling user comments on posts. Despite extensive research and attempts to troubleshoot by searching online, I have not been able to find a solution. I have been str ...

Browserify pulls in entire module even if only specific parts are utilized, such as react-addons

I am currently using Browserify to bundle my server-side react.js code for the client. There is a concern that utilizing a module from an npm package may result in the entire package being bundled by Browserify. Question: Will require('react-addons& ...

A fresh controller instance was instantiated upon calling $state.go() in angular-ui-router

I'm struggling to grasp the concept of routing with angular-ui-router and states. My application is built on ionic (v1), angular, and esri jsapi. I am utilizing the ionic side menu and angular-ui-router. Upon loading my site, the map view is displaye ...

Identify and track colored dots within an image using tracking.js

I'm working on creating a program that can tally the number of dots on dominoes in an image, such as the one shown here: https://i.sstatic.net/NKHXl.jpg My goal is to develop this functionality using JavaScript. I've attempted to learn how to u ...

The selected image should change its border color, while clicking on another image within the same div should deselect the previous image

https://i.sstatic.net/jp2VF.png I could really use some assistance! I've been working on Angular8 and I came across an image that shows how all the div elements are being selected when clicking on an image. Instead of just removing the border effect f ...

Locate the hyperlink within a div using JavaScript and navigate to it

I stumbled upon an element (div1) and now I am looking for a link within that element (link) so that I can navigate to it. <div class="div1"> <p> <a href="link">Link</a> </p> </div> ...

The layout option is not specified within the ejs-mate package

error boilerplate I am baffled as to why the layout is not being defined. I have installed ejs-mate and ejs, yet it still gives this error. <% layout('layouts/boilerplate') %> <h1>All campgrounds </h1> <div> <a ...

Mastering the art of traversing different classes using following-sibling in Selenium VBA

Trying to understand the functionality of following-sibling navigation through elements, currently experimenting with extracting information such as name, product code, stock, and daily USD value. It successfully retrieves different info for each item, but ...

The form yields no response and fails to send any data

Ensuring that the form on this site successfully sends the name and phone number is crucial. However, upon clicking the send button, I encounter an empty modal window instead of a response indicating whether the data was sent or not. The contents of the fi ...