Questions tagged [selenium-chromedriver]

Created in partnership with the Chromium developers, ChromeDriver is an independent server that executes WebDriver's wire protocol.

Eternal Flow Protractor

Having some trouble with utilizing Protractor for testing my end-to-end application built with Angular. Running into timeouts despite already starting the Selenium server and Chrome driver. ...

The GWT plugin seems to be missing when using chromedriver

Trying to run Selenium tests on a GWT Java application and utilizing the ChromeDriver for this purpose. Requiring the GWT Plugin in the settings, here's the process I follow: @Provides @Singleton protected WebDriver getDefaultWebDriver() throws IOEx ...

What is the simplest method for integrating ChromeDriver into an application?

When it comes to web automation, I find myself frequently using Selenium and ChromeDriver. Currently, I add ChromeDriver to all my projects by making a copy of chromedriver.exe and including it in each project directory. Then, I specify the location of chr ...

Automated browser testing using Selenium with Chrome Driver for code-based UI testing

Using Selenium chromedriver; The selenium chromedriver was initialized and the chrome browser window appeared, showing the following information: Starting ChromeDriver (v2.8.241075) on port 10820 [8804:7492:0110/155544:ERROR:chrome_views_delegate.cc(176)] ...

The Java Selenium ChromeDriver experiences delays when loading a new page

I am currently working on a script that automates the login process on a website and performs certain actions. The code for logging in is as follows: WebDriver driver; JavascriptExecutor exec; String dni = "..."; String passwd = "..."; ...

ChromeDriver fails to open a new page when using the chrome_options parameter

When attempting to open a new page using ChromeDriver, I am using the following code: import selenium from selenium import webdriver from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as E ...

Encountering ERR_SSL_PROTOCOL_ERROR with ChromeDriver even with the --ignore-certificate-errors flag

I'm attempting to perform integration tests on a local host (without HTTPS) using Selenium with ChromeDriver. Chrome insists on an HTTPS certificate, but I discovered from this question that I can bypass this requirement by using the argument --ignore-cer ...

Behave causing Chrome driver to fail

I'm exploring the use of Behave for BDD, but I've encountered an issue. I already have several Selenium (Python) tests that are running successfully, but when I switch to using behave, I encounter an error stating "chromedriver.exe has stopped working". I ...

Python Selenium is having trouble finding the elements

I've been struggling for hours to extract the specific text from a variety of elements on a website. I attached 2 images in hopes that they will help in identifying these elements by their similarities, such as having the same class name. The black un ...

Can anyone provide guidance on how to navigate and locate this specific element using Selenium within a Java

How do I locate the value 1352 using Java Selenium on ChromeDriver? <span class="numfound" id="yui_3_18_1_1_1522936314968_15">1352</span> The id is not intuitive, so I want to select by the String "numfound". I attempted selecting byClassName ...

An issue with Selenium web scraping arises: WebDriverException occurs after the initial iteration of the loop

Currently, I am executing a Selenium web-scraping loop on Chrome using MacOS arm64. The goal is to iterate through a list of keywords as inputs in an input box, search for each one, and retrieve the text of an attribute from the output. A few months ago, I ...

Errore in Python con Selenium: TypeError - Oggetto di tipo 'str' non è richiamabile durante la ricerca di un

I encountered the error message: "TypeError: 'str' object is not callable" while running this code: iframe=driver.find_element(By.XPATH("//iframe[contains(@src,'https://pianomarvel.com/uploads/editSlicings/85810')]")); What could be causing this issue? C ...

Could not connect the chrome node to the hub

Below is my docker-compose.yml file that binds Chrome and Firefox nodes to a Hub. version: "3" services: selenium-hub: image: selenium/hub container_name: selenium-hub ports: - "4444:4444" chrome: image: selenium/node-chrome-de ...

Selenium: The code fails to execute a specific function

I am facing an issue with my script. The code between the specified problem-comments is not executing as expected. This script is designed to log into the Yandex-mail page (), locate the search-field for mails using XPath, click on it, and input the text " ...

The `get_attribute` function in Python's Selenium module

When using the get_attribute() method in Python Selenium, an error pops up: Are you referring to 'getattribute'? What is the purpose of this function? I am attempting to retrieve the class attribute of the parent element to confirm if I have reached th ...

Element could not be found inside the pop-up dialog

I have been attempting to find those buttons displayed here: https://i.stack.imgur.com/5M1qd.png Here is the HTML for them: https://i.stack.imgur.com/238no.png I've experimented with different methods, but unfortunately, nothing has succeeded. ...

Why does Assert not work when Test always succeeds?

Currently, I am delving into learning Selenium with C# and have encountered an issue with my assert function. Below is the code snippet in question: // Compare Expected Price with Actual Price string Price = "£29"; IWebElement ProductPrice = driver.FindE ...

transferring files without a user interface

Looking for a solution to upload a file by clicking on an element: <a class="gray_box" href="#">Choose world folder<span>Select the world folder, we'll do the rest</span></a> The issue arises when the file manag ...

Issue obtaining numerical output for font boldness in Chrome while using Selenium WebDriver

public class CssCheckCrome { public static void main(String[] args) { System.setProperty("webdriver.chrome.driver","C:\\Users\\user123\\Desktop\\chromedriver_win32\\chromedriver.exe"); ...

Encountering difficulties extracting audio from the webpage

Attempting to extract audio(under experience the sound) from 'https://www.akrapovic.com/en/car/product/16722/Ferrari/488-GTB-488-Spider/Slip-On-Line-Titanium?brandId=20&modelId=785&yearId=5447'. The code I have written is resulting in an ...

Trouble seems to be brewing as Selenium struggles to load elements on the Plus

Encountering an issue with selenium(4.12) & python(3.11.5) on chrome(116.xxx), elements fail to load when selenium attempts to click on them. However, manually refreshing and clicking on the elements makes them load and function properly. The problema ...

What steps can I take to avoid launching chromedriver.exe while executing my Selenium program?

I created a program in Python using Selenium and ChromeDriver to notify me when seats are available. I then packaged it with PyInstaller using the --onefile and -w options to avoid displaying any console windows. However, upon executing my program, the c ...

Steps to execute several selenium scripts consecutively without relying on the 'Beforetest' and 'Aftertest' functionalities

In my work with Selenium web driver, I have crafted a series of codes in Eclipse to test different features of a web application. My aim is to execute them sequentially without combining them into one code using the '@Beforetest' and '@After ...

Analyzing multiple elements for invisibility using Selenium is proving to be a time-consuming task

During one of my test cases, I am verifying the visibility status of certain elements. The process is quite simple: Login Verify that 5 buttons within the left menu bar are not visible (as the user does not have access rights) End the test This verifica ...

Select the list item containing the desired text by clicking on it

When trying to click on a specific element based on the text displayed on this page using Python 3 and Chrome driver, I encountered an issue. For instance, when searching for "BEBES", I used the following code: WebDriverWait(browser, 10).until(EC.element_ ...

Selenium - incapability to select the subsequent page

I'm experiencing difficulties with clicking the next button (>) and repeating this process until reaching the last page. Despite researching similar issues, I have been unable to identify what's causing my code to malfunction. Below is the co ...

The website has identified that a Selenium bot is trying to access it. Are there any other websites available for testing purposes as part of a Selenium tutorial

I'm currently conducting a test on the Lufthansa website using a Selenium webdriver. I encountered an issue where the "FROM" field is pre-filled with the value "Casablanca", and despite clearing it, it automatically reverts back to "Casablanca" when clic ...

Discovering the Full DOM Structure using Selenium

I've been encountering a similar issue with this question, and despite trying to resolve it using WebDriverWait, I continue to receive an exception error indicating that the selector is not present. Even after printing driver.execute_script("return ...

Choosing a data-toggle in Selenium: Tips and Tricks

https://i.stack.imgur.com/CgegX.png My goal is to interact with the tabs on this page, but unfortunately I am unable to do so. Is there a way to access the data-toggle functionality using Selenium in Python? ...

Issue with chromedriver locating element on Polymer site

I am currently working on an automation project using Selenium, which involves calling the Chrome webdriver to run test cases. However, I have encountered an issue with Chromedriver not being able to locate elements on websites built with the Polymer frame ...

The quit() method in Chrome 65 does not successfully kill all Chrome processes

Ever since updating my Chrome browser to Version 65.0.3325.162 (the latest version), I've been experiencing a problem. Every time my tests start, an additional zombie Chrome process appears in the task manager, consuming a significant amount of CPU r ...

Locate the text of an element that is not visible on the screen while the code is running

Currently, I am diving into the world of web scraping using Selenium. To get some practical experience, I decided to extract promotions from this specific site: https://i.stack.imgur.com/zKEDM.jpg This is the code I have been working on: from selenium im ...

Unable to locate additional elements following javascript append utilizing Chrome WebDriver

I have a simple HTML code generated from a C# dotnet core ASP application. I am working on a webdriver test to count the number of input boxes inside the colorList div. Initially, the count is two which is correct, but when I click the button labeled "+", ...

Python error: No element found using driver.find_element_by_class_name method - Element not found in DOM

As of now, I am engaged in a project with Selenium where I am trying to accurately identify elements using the 'Inspect' feature on Chrome. There are instances where some of my buttons to click are only defined by class, but certain classes fail ...

The WebDriver Manager for Selenium Automation is experiencing issues with the latest Chrome update, version 116

I implemented the selenium framework and included this dependency. However, I encountered an issue where the browser wasn't being invoked due to Chrome version 116. <dependency> <groupId>io.github.bonigarcia</groupId> <art ...

What is the method to initiate a fresh instance of Selenium Webdiver for every thread in a Parallel.ForEach loop?

I am interested in running a parallel execution of a web crawler using Selenium ChromeDriver. Encountering problems when attempting to use the same instance of ChromeDriver within a ForEach loop. When trying to access attributes of an HTML document, the ...

Azure C# integration encountered a mysterious hiccup: Runtime.evaluate exception caused a DOMException error while utilizing Selenium

Every day, I run tests on a Remote Machine using Azure's scheduled run. Unfortunately, some of the tests keep failing and are generating the following error log. How do I go about resolving this issue? Please note that I do not have the method implementat ...

utilizing selenium chromedriver for file uploading操作

I've been using selenium chromedriver to automate tasks, such as logging in, checking checkboxes, and navigating web pages. However, I've run into a roadblock while trying to upload a file. The upload page has multiple buttons that open dialog b ...

Is there a way to navigate my mouse across a webpage using Selenium (or a different webdriver) using specific x and y coordinates?

while True: cursorx, cursory = pyautogui.position() body = driver.find_element_by_css_selector("body") actions.move_to_element_with_offset(body, cursorx, cursory) Is it possible to programmatically move the mouse on a website without ...

Headless Chrome is showing an empty section on the webpage

While running a protractor script to test an Angular page using chromedriver, I have noticed that the results differ when using the "Headless" or "Normal" browser modes. For instance, when employing a "repeater" locator to showcase items in an empty list, ...

Is there a surefire method to ensure that ChromeDriver in Protractor consistently uses the stable version?

Every time Chrome releases an update, I encounter a recurring issue. Allow me to paint the picture: All browsers are at version 83 of Chrome Chrome announces that version 84 is on its way, but it has not been released yet. A new ChromeDriver 84 is rolled ...

In the event that I have both Chrome (32 bit) and Chrome Canary installed on my system, how can ChromeDriver distinguish between the two?

I recently ran into an issue with WebDriver and my Chrome installations. Even though I have both the 32-bit version and Chrome Canary installed, WebDriver always defaults to opening the 32-bit version due to the path provided. When attempting to specify t ...

Looking to extract text from an h3 tag class with Python and selenium?

I am currently facing a challenge when it comes to extracting text from a specific webpage: https://i.stack.imgur.com/YNo0Y.png My attempts with browser.find_element_by_class_name("W6bZuc.YMllz").text have been unsuccessful. I also tried browser.find_e ...

A guide on extracting text enclosed in and using Selenium

When attempting to extract text from an element and display it in the console, I encountered a challenge as the text was surrounded by and as noted in the JSON file retrieved during a GET request. The HTML structure appears as follows: <span clas ...

Using Behat version 3 in conjunction with the Google Chrome browser

Struggling to set up behat 3 with chrome and encountering issues while trying to initialize the behat.yml file. default: extensions: Behat\MinkExtension\Extension: base_url: 'http://someurl.com' javascript_session: se ...

Jenkins error: Selenium SessionNotCreatedException caused by 'Insufficient space on device (OS error 28) for path "/tmp/rust_mozprofileO0WZJN"'

Encountered an error while trying to run Selenium using Jenkins: org.openqa.selenium.SessionNotCreatedException: Could not initiate a new session. Issue arose during session creation with the driver service, leading to service stoppage. Response code 500. ...

selenium chromedriver is lagging in loading a website efficiently

While attempting to utilize the selenium chromedriver browser for web scraping, I encountered a situation where the page was still loading despite fetching the desired information. I didn't want to wait indefinitely, so I began searching for a way to halt ...

The Benefits of Using ChromeDriverService in Selenium Automation

The ChromeDriverService class can be found in the org.openqa.selenium.chrome package. It's functionality allows for starting the Chrome driver on any port of the machine using the code snippet below: ChromeDriverService service = new ChromeDriverService.B ...

The Python Selenium test passes without issue when executed on its own, but encounters a Chromedriver error when included in the defaultTestLoader

While conducting a Selenium Test in Python, I encountered an issue. The test file runs successfully, but when attempting to run a testLoader with that test, an error occurs: selenium.common.exceptions.SessionNotCreatedException: Message: session not create ...

Docker is throwing a NoSuchElementExeption, but everything runs smoothly on localhost

I have developed an automated test using Selenium, and it runs successfully in Eclipse. However, when I try to run it in Docker, I always encounter the NoSuchElement Exception. I am hoping that someone can assist me with this issue. Here is a snippet of my ...

org.openqa.selenium.interactions.MoveTargetOutOfBoundsException: attempting to move target outside of boundaries with Selenium on Chrome using Java version '16.0.2'

While attempting to click on a link within a dropdown menu that appears when I hover over a button, my test is encountering a MoveTargetOutOfBoundsException error. This error occurs when trying to hover over the button. Oddly enough, when I manually open t ...

Locating elements using Ruby Selenium Web Driver without triggering a NoSuchElementException异常

I am currently testing the following HTML using Ruby Selenium Web Driver: <div class="container-fluid container-results"> <div class="result-row" id="0"> <ul> <li class="process-status-column upload-success-ico ...

What is the best way to terminate Selenium Chrome drivers generated from multiprocessing.Pool?

I implemented a system where I have a roster of article titles and IDs that are utilized to construct the URLs for the articles and then collect their content through web scraping. To optimize the process, I decided to employ multiprocessing.Pool for paral ...

Update settings when starting with chromedriver

I am currently using webdriver (), standalone selenium, and mocha for writing my test cases. These test cases are specifically designed for Chrome, so I rely on chromedriver for execution. However, when launching the browser, I need to ensure that the "to ...

The send_keys() function in Selenium version 3.141.0 works perfectly on Windows, but unfortunately, it is not functioning correctly on Linux Debian 11

I've been experimenting with web automation using Selenium. Everything was running smoothly until I updated my packages - now the send_keys() method isn't functioning on Linux, but it's working fine on Windows with the same versions. I&apo ...

Error encountered: WebDriver session not found while using ChromeDriver with Selenium and Jasmine

Currently, I am working on creating an automated test for my website using a combination of Jasmine and selenium. However, when I run the tests on chrome with chromedriver, I encounter the error below randomly. This issue occurs frequently enough that it ...

Using selenium, you can easily download a file without needing the direct URL

I need assistance with using Selenium for website automation in Chrome using vb.net. I am trying to download files from a website that does not have direct URLs for download buttons, as the downloads are triggered by JavaScript. How can I accomplish this i ...

org.openqa.selenium.WebDriverException: Element is not interactable

System Information: - Browser: Chrome Version 39.0.2171.95 - Driver: Chrome Driver 2.13 (Latest) - Automation Tool: Selenium WebDriver I am currently facing an issue where my script is unable to click on a b ...

How to deal with Chrome's notification for downloading multiple files on "www.xyz.com" in automation using Robot Framework and SeleniumLibrary

Currently I am facing a challenge in my automation testing process. I am trying to download 3 files with a single button click when utilizing Robot Framework with SeleniumLibrary and writing code in VSCode. Upon clicking the button, Chrome displays a popup ...

Is it possible to switch to a single machine with higher configuration and 2 nodes instead of having 2 machines with lower configuration, each containing only 1 node in the Selenium grid?

I am currently utilizing two Windows VMs, each equipped with 2 CPU cores and 8GB of RAM. My tests have been running smoothly using Selenium Grid, with 7 instances of Chrome being run simultaneously across these machines. This setup entails that one machine ...

Unable to retrieve the value from an "input" element

Currently, I am utilizing Selenium with Java to create a test. My task involves retrieving the text from inside an input element: <table class="boundaryFormAdd"> <tbody> <tr> <td> <input id="id ...

Having trouble resolving the issue of connection timeout with Chrome while utilizing chrome version 78 alongside chrome driver version 78.0.3904.70? Here's a step-by-step guide on how to troubleshoot and fix this error

After updating my Chrome browser to version 78, I encountered an error when trying to run any automation code. To resolve the issue of timeout while connecting to ChromeDriver and related test frameworks, ensure that ports are protected from access by mal ...

Showing how to make an element visible in Selenium and Python for file uploading

Check out this HTML snippet: <div class="ia-ControlledFilePicker"><input class="ia-ControlledFilePicker-control icl-u-visuallyHidden" type="file" id="ia-FilePicker"><label class="ia-ControlledFilePicker-fakeControl" for="ia-FilePicker">C ...

Selenium Chromedriver seems to be spawning numerous instances despite the need for just one

As someone new to Selenium and still in the learning process, I apologize if I come across as naive. We are currently trying to execute our Selenium tests on a specific machine through IIS. Strangely, when running the code locally, everything operates pe ...

Uploading Multiple Files with Selenium using Python

I have been working on a multiple image upload feature and here is the code I am using: import selenium import time import selenium.common.exceptions import os from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriv ...

Prevent all downloads using ChromeDriver and Selenium

When using Selenium with ChromeDriver to access static files like hudoig.gov/sites/default/files/documents/2016-FW-1007.pdf (just an example), the file automatically downloads to my default download folder. Is there a way to stop this default behavior and ...

Having trouble locating the table element within a div element using Selenium in Python

My goal is to access values from a table within a div element using selenium. Although I am able to see the table when inspecting the element, I cannot locate it in the source code while attempting to access it through selenium. When Inspecting: https:/ ...

Having difficulties running Coded UI tests on Firefox browser in Visual Studio 2013

This was the version I had: Visual Studio 2013 WebDriver.ChromeDriver.win32 2.2.0 selenium-dotnet-strongnamed-2.35.0 Firefox 24 However, while running a Coded UI test, I encountered the following error: Microsoft.VisualStudio.TestTools.UITest. ...

The error ElementNotVisibleError occurs in Selenium::WebDriver when attempting to use the send_key function with a Chrome browser, as the element is not currently visible

A problem has arisen with the Ruby Selenium script I am running in parallel. The issue occurs when attempting to send text input through send_key on a webpage while using the Chrome browser. Selenium::WebDriver::Error::ElementNotVisibleError: element not ...

Using ChromeOptions to Manage Webdriver Execution

I encountered a problem in Chrome where I received an error message "You Are Using An Unsupported Command-Line Flag –Ignore-Certificate-Errors. Stability And Security Will Suffer." when running my Selenium code as shown below. Public Sub key() Dim sel ...

A guide to extracting information from a dynamic webpage using Selenium

As a beginner in the world of selenium, I am looking to extract the price and offer end time from a Udemy Course link. How can I achieve this? The price and course end time are dynamically loaded onto the website. While I have experience extracting simple ...

Python Selenium, Difficulty encountered with the find_element_by() function

Could someone please help me with this issue? I'm encountering errors with the find_element_by_() commands in my code and have tried reinstalling everything, as well as changing the Python version. Unfortunately, nothing seems to be working. Any suggestion ...

Issue occurred while attempting to execute Selenium / Chromedriver concurrently

I am facing an issue with a code snippet that takes a screenshot of a locally hosted website (https://) when executed "on-demand." The problem arises when the code runs twice in the same second causing the following error: Traceback (most recent call last) ...

Updating the default download folder for Chrome Webdriver

Seeking guidance on how to modify the default download location for Chrome using Selenium-Perl. Utilizing Chrome Webdriver alongside the Perl module Selenium::Remote::Driver. Found solutions in Java but struggling to locate a Perl-specific example. ...

Tips for utilizing a CSS selector to find a single element with two attributes simultaneously in Selenium using Python

Currently, I am using Selenium Python Css selector to target 1 component with 2 attributes simultaneously, both of which should be partially matched. Successfully located the element with Xpath: fifth_item = driver.find_element_by_xpath("/html/body/div[c ...