Error: Unable to launch Chrome - Version 75.0.3770.100

Our C# selenium tests running on Jenkins are experiencing failures during execution with the latest version of Chrome 75, showing the error message "Chrome failed to start."

After researching various articles, I have added the following code as arguments for Chrome:

chromeOptions.AddArgument("--enable-automation");
chromeOptions.AddArgument("--no-sandbox");
chromeOptions.AddArgument("--disable-extensions");
chromeOptions.AddArgument("--disable-print-preview");
chromeOptions.AddArgument("--disable-gpu");
chromeOptions.AddArgument("--disable-software-rasterizer");
chromeOptions.AddArgument("--disable-gpu-sandbox");
chromeOptions.AddArgument("--disable-features=VizDisplayCompositor");
chromeOptions.AddArgument("--start-maximized");
chromeOptions.AddArgument("--disable-dev-shm-usage");                    
chromeOptions.PageLoadStrategy = PageLoadStrategy.Normal;

This issue only occurs during execution in Jenkins.

Answer №1

My experience with Chrome 76 was encountering this issue. After some troubleshooting, it appears that the solution involves eliminating the --disable-software-rasterizer argument from the equation.

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

Transforming C# code into Python programming language

Hello, I have created a web scraper using Selenium in C#, but now I need to convert it into Python for my project. I am having trouble displaying the element in the console window. Here is the C# code: var elements = ghostDriver.FindElements(By.XPath("/h ...

Using Selenium: Checking for existing dropdown values and incrementing if necessary

I am currently working on automating an application using Selenium Webdriver with Java. The web application I am testing has an Add button that, when clicked, triggers the activation of a dropdown menu. Subsequent clicks on the Add button reveal additional ...

Encountering an error when trying to switch between tabs and close a tab in a window

Currently, my code is designed to perform a sequence of actions: open a window, navigate to a link on the page, extract some data from that page, and then close the tab. However, I am encountering an issue with closing the tab after completing these step ...

When running the Maven install command, no actual building process occurs, but the console displays a successful build message

Upon checking the IDE console, the following message is displayed: Results : Tests run: 0, Failures: 0, Errors: 0, Skipped: 0 [INFO] [INFO] --- maven-jar-plugin:2.3.2:jar (default-jar) @ maven --- [INFO] Building jar: C:\Documents and Settings&bso ...

Could not find an iframe element using the specified xpath

Every time I attempt to run the code below, I encounter an InvalidSelector exception: List<WebElement> allFrames = driver.findElements(By.xpath("//iframe")); org.openqa.selenium.InvalidSelectorException: Unable to find any element using the xpat ...

Unable to capture the image of a specific element

I'm attempting to capture a screenshot of the "Next" button on the Gmail login page using the code provided below. WebDriver driver = new ChromeDriver(); driver.manage().window().maximize(); driver.get("https://www.gmail.com"); WebEle ...

Unable to retrieve text from switch_to_alert

Currently, I am utilizing the selenium webdriver in Python to extract the content from a popup window. To retrieve the content, I have used driver.switch_to_alert.text(). Although I can obtain the alert object by calling driver.switch_to_alert, I am encou ...

Is there a way to deactivate the debugger on Chrome Webdriver while using Python 3.x?

Does anyone know how to stop the debugger/logging in Chrome webdriver using Python 3.6? I've attempted the code below and it's not working. chrome_options = webdriver.ChromeOptions() chrome_options.add_argument("--disable-infobars") chrome_opti ...

End-to-end testing with Protractor using multiple capabilities: Running Internet Explorer at the same time

Currently, I have Protractor 5 set up in the configuration file with multiCapabilities for testing my AngularJS 1.6 application. The idea is to have two instances of the same browser running simultaneously, simulating interactions between two users. While ...

What could be the reason for my xpath not functioning correctly in selenium?

I'm struggling to write a script for my website where the user's input is connected to a page to submit a number and download a file. The issue I'm having is that the xpath isn't working at all. Can someone help me figure out what I&apo ...

Having trouble accessing a website using Selenium-wire after compiling with Pyinstaller

I am trying to access a website using proxies with authentication and a specific user-agent. Here is the code snippet I am using: def start_driver(proxy_data, user_agent): proxy = ( proxy_data.get('login') + ':' + proxy_ ...

XPath - Finding a node based on the text content of all nested elements within it

I have come across the following HTML code: <tr> <td> Some <strong> text </strong> <em> and more </em> </td> ... </tr> My objective is to fi ...

Navigating through a webpage using PhantomJS as the WebDriver and interacting with a save file

Exploring PhantomJSDriver for C#. I have encountered a problem: when attempting to click on an element that triggers a file save dialog, PhantomJSDriver throws an exception: Error Message => 'Click succeeded but Load Failed. Status: 'fail'& ...

Extracting Text from HTML Code Using Selenium WebDriver and Java

Markup Language <label for="ctl00_ContentPlaceHolder1_RadPanelBar1_i0_chkColumns_21">Royality Free</label> Automation Code driver.findElement(By.id("ctl00_ContentPlaceHolder1_RadPanelBar1_i0_chkColumns_21")).getText(); The selenium script ...

Discover the latest updates on a website using web scraping techniques

Seeking guidance on how to approach scraping a blog site for new posts without needing the exact code. I want a rough game plan for this task! The objective is to detect any new blog posts on the website and retrieve the URL of the latest post. This ques ...

I am looking to transfer data from a table into an array using the Selenium framework

Hello everyone, I'm trying to extract content from a table on a website using Selenium. Here's my initial attempt: from selenium import webdriver driver = webdriver.Chrome() driver.get('https://www.javatpoint.com/html-table') texts = ...

Enabling Chrome Driver to Download Multiple Files with Selenium - A Step-by-Step Guide

Currently, I'm working with a Python script that utilizes Selenium to navigate through various web pages and download files. However, an issue arises after the initial file is downloaded: the Chrome driver prompts for permission to allow multiple down ...

Having trouble running Selenium Chrome Driver on Pi Zero with error code -4?

Having trouble setting up a script on my new Pi Zero W after it was previously working on my Pi 3 B. It seems like the hardware may be the culprit as simply transferring the entire operating system to the new pi results in this issue, with no other changes ...

Each time a URL is accessed, Scrapy and Selenium send two requests

import scrapy from selenium import webdriver class ProductSpider(scrapy.Spider): name = "product_spider" allowed_domains = ['ebay.com'] start_urls = ['http://www.ebay.com/sch/i.html?_odkw=books&_osacat=0&_trksid=p204557 ...

Setting up Selenium Grid to allow for the installation of Chrome extensions during a session

I am facing challenges trying to use a Chrome extension from the Chrome Store in my Selenium Grid test on the Chrome browser. My first attempt was to visit the extension URL in the browser (https://chrome.google.com/webstore/detail/..) and click on the I ...