Executing selenium tests on Internet Explorer 11 on a Windows 10 1809 machine without encountering any new pop-up windows

While testing on my computer, I encountered an issue where my test would start successfully, but after opening and closing several Internet Explorer windows during the test, no new windows would open. There were no error messages displayed, and the test seemed to be stuck.

I meticulously checked all the settings based on the information provided in the Selenium Wiki.

Interestingly, when I used the chromedriver to run the same tests in Chrome, everything worked seamlessly.

The snippet of code being executed is as follows:

var { Builder, By, Key, until, Capabilities } = require("selenium-webdriver");
var ieCapabilities = Capabilities.ie();
var driver = await new Builder().withCapabilities(ieCapabilities).build();
await driver.manage().setTimeouts({ implicit: 3000, pageLoad: 3000, script: 3000 })
await driver.manage().window().setRect({ height: this.initialHeight, width: this.initialWidth });
await driver.get("http://localhost/");
// perform the tests
await driver.quit();

This code is part of an ava test setup. To troubleshoot the issue, I temporarily set the concurrency to 1 and made all tests serial, however, the problem persisted.

Could someone provide guidance on how to ensure that the test runs smoothly till the end?

Answer №1

Various issues have arisen that caused the test cases to become unresponsive:

Hang-ups due to Lack of Timeouts in wait-calls

The absence of timeouts led to the tests hanging as a result of different behaviors in IE.

Incorrect code snippet:

await driver.wait(until.stalenessOf(elementSelectMenu));

Corrected code:

await driver.wait(until.stalenessOf(elementSelectMenu), 6000);

Issues Arising from Missing await Statements

While not problematic in Firefox or Chrome, this caused crashes in IE.

Troublesome code fragment:

driver.findElement([...]).click();

Correct approach:

await driver.findElement([...]).click();

Challenges Encountered While Using Selenium on HTTPS Websites

Certain tests required verification on websites using TLS. In IE, these tests threw errors.

A workaround involved disabling protected mode for all zones.

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

Exploring an array of objects to find a specific string similar to the one being

I recently developed a TypeScript code snippet that searches for objects in a list by their name and surname, not strictly equal: list = list.filter( x => (x.surname + ' ' + x.name) .trim() .toLowerCase() .sear ...

Identify the element where text input occurred

I have a series of dynamically generated divs. I want to be able to identify which specific div the content was entered into and then take action on the other divs based on that detection. For instance, if I have three divs with the "example" class: < ...

An issue arose during the page prerendering process for "/" on Vercel | Next.js resulting in a deployment error

When attempting to deploy my website using Vercel and generating static pages, I encountered the following error in the logs: info - Generating static pages (0/6) Error occurred prerendering page "/". Read more: https://nextjs.org/docs/messages/ ...

Issues with Safari functionality in sauce labs' free-tier for automating web processes with selenium

While using the free-tier option, I have encountered some difficulties when trying to conduct test automation with Selenium on Safari and Edge browsers. Despite utilizing the desired capabilities from the platform configurator, I sometimes receive an error ...

What is the best way to retrieve the innerHTML content of an anchor tag with Cheerio?

Looking to extract data from an HTML page, a simplified example is provided below. Upon running the code, I anticipate the output to be [ "foo", "baz", "quux", ] but instead encounter an error message stating "TypeError: anch ...

loop through an array and use splice to select items and modify the array

My current issue involves working with a pixabay array. Although I successfully retrieved the data from my array, it contains 20 random pictures when I only need 3 to be displayed on my website. I attempted to use a slice array for this purpose, but unfor ...

Guide for executing two @Test methods within a single class file by utilizing WebDriver and TestNG

As I delve into the world of Web Driver, I encountered a piece of code that sparked my curiosity. Within this code snippet, there are two @Test methods residing in a single class that I am eager to run in parallel using testng.xml. Alas, a nagging questio ...

Executing two Maven profiles

My configurations in the pom.xml file: <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <vers ...

What steps can I take to make sure JSON keys containing only digits are treated as Strings instead of Numbers?

Within a JSON String, I have IDs as keys, represented as Strings of numbers, while the values are actual Numbers (Float). The problem arises when parsing this information to obtain an object in Safari 10.1.2... var jsonData = "{\"53352\":0.6, ...

Error message: When attempting to create dynamic inputs in React, an error occurs stating that instance.render is not

I encountered an issue while attempting to create dynamic inputs in React. The error message 'TypeError: instance.render is not a function' keeps popping up. import React, { Component } from 'react'; import Input from '../../Ui/Inp ...

Having trouble transmitting JSON data to an Express server through the browser

I have set up two servers: the first one is for frontend (localhost:7200), and the second one is for backend (localhost:7300). There is a test request made by the frontend to the backend on the route '/test'. The issue arises when I attempt to s ...

Picture is unavailable for viewing - (Express, Pugjs)

I'm having trouble getting an image to display on my page using a pug template. Despite following the setup and files correctly, the image still isn't showing up. Here is what I have: index.js app.use('/images', express.static(path.r ...

Struggling to update the inner content of a div container

For some reason, I'm having trouble updating the inner html content of a specific div element. <div class="emoji-wysiwyg-editor form-control" data-id="83fa07d0-2bab-4c02-8bb6-a2133ae64bbd" data-type="input" placeholder="Chat Message" contenteditab ...

The operation to assign a value to property 'two' cannot be completed as it is currently undefined

I'm facing an issue with the code below and cannot figure out why I am encountering the error message. I have ensured that each object contains a value, so why is there a reference to 'undefined'? Cannot set property 'two' of unde ...

Determine the type of sibling parameter

Creating a Graph component with configurations for the x and y axes. The goal is to utilize GraphProps in the following manner: type Stock = { timestamp: string; value: number; company: 'REDHAT' | 'APPLE' | ... ; } const props: ...

An issue arose when attempting to load the page using jQuery

Currently, I am implementing the slidedeck jquery plugin on my webpage to display slides. While everything is functioning properly, I am facing an issue with the CSS loading process. After these slides, I have an import statement for another page that retr ...

There are encountered issues with the `POST` value not functioning properly on certain pages

Form submission was done using script: window.document.form_id.submit(); After redirecting to the action link, unable to retrieve value using $_post['name'] This functionality works fine on local environment but not on the server. ...

Server experiencing slow performance with Node.js formidable file uploads

When sending files as form data along with some fields using an http post request in angular.js and receiving file in app.post in node.js, the performance is inconsistent. While local testing shows a fast upload speed of 500 mb/sec with formidable, on the ...

What is the best way to interact with both the child and parent controllers within a directive?

We currently have two directives known as parent and child. Both of these directives come with controllers that house specific functionalities. In the case of the child directive, there are a couple of ways to access controllers: We can access the parent ...

Building a custom Vue layout within Laravel UI

Currently, I am utilizing Laravel 8 along with laravel/ui 3.4 for the front end of my project. My goal is to establish a fixed sidebar, footer, and a designated area for the router-view. In my routes/web.php file: Route::view('/{any}', 'hom ...