Questions tagged [selenium-chromedriver]

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

Waiting for a webpage to fully load with JavaScript in Selenium

I am facing an issue where I need to wait for the page to fully load before executing a certain action. It is important for me that the loading circle on the browser tab stops spinning before proceeding. The current Ajax function I am using does not work c ...

I am currently facing a challenge with Selenium and .NET while attempting to select an element by its ID. Unfortunately, I am encountering a NoSuchElement exception,

Here is the image I need help with selecting Here are my unsuccessful attempts so far: driver.FindElement(By.CssSelector("amplify-sign-in /deep/ amplify-form-section/amplify-auth-fields /deep/ amplify-username-field /deep/ amplify-form-field /deep/ # ...

Determine whether h1 and/or h2 tags are present on a webpage

I came across this code: driver = webdriver.Chrome() driver.implicitly_wait(60) driver.get(link) driver.add_cookie({'name' : 'access_token', 'value' : token}) driver.refresh() time.sleep(5) driver.find_element_by_name(&apo ...

Jenkins begins running chromedriver while in the background, similar to a headless mode operation

I have configured a Jenkins server on a Windows 10 machine. When I run a job (simply mvn test -DsuiteXmlFile=%TestSuite%), the job compiles successfully and starts tests. Initially, the first test is skipped, the second one fails, and then it starts passin ...

Selenium Java encountering issue with disabling developer mode extensions error

Currently, I am using Java Selenium and encountered the following issue: System.setProperty("webdriver.chrome.driver", "D:\\chromedriver.exe"); WebDriver driver = new ChromeDriver(); driver.get("http://www.gezinomi.com/"); Error screenshot: ht ...

How to compare values with the same class name in Selenium and programmatically click on the link with the highest value in Python?

I currently have 5 or 6 products listed under an anchor tag, each containing the product name and price within distinct div elements. My goal is to compare the prices of all the products and then click on the link that corresponds to the product with the h ...

The presence of scoped_dir* temporary files left behind by Selenium-Chromedriver test execution causes errors when trying to run tests on an internal website, resulting in a

Our team utilizes Selenium-C# automation tests to run an internal web application that requires an OAuth-2 Bearer token. During test execution, a set of temporary files named scope_dir are created. While some tests automatically delete these files, others ...

"Altair_Saver halts mid-loop due to a WebDriverException: Error Message: An unknown error occurred - the result of the function call must

The solution presented in response to this particular query appeared to be effective. However, after running the loop for 3 iterations, an unexpected issue occurred. The error message that was displayed is proving to be quite challenging to interpret. - ...

Python selenium is unable to fetch text from website

I'm currently working on a small program that fetches the hourly price of electricity by retrieving the text displaying the current rate. Here's the code I've written so far: from selenium import webdriver from selenium.webdriver.common.by ...

Ways to determine if a tag is the final one

Utilizing Selenium and Java for writing a test involves working with the following DOM structure: <tbody> <tr> <th>Copy</th> <th>Subfield</th> <th>Subfield Border</th> <th>Field</th& ...

Python Selenium - Chrome window does not respond to button clicks

When attempting to click the submit button in a window opened by the Chrome driver (even manually in the controlled window while running automated tests with pytest selenium-python), it does not register the click. Interestingly, there is no issue with th ...

Is it possible to bypass detection using Python Selenium?

Attempting to extract data from this webpage - But facing detection as soon as the request is made, any workaround for this issue? Previously tried using Request but encountered detection. *Scrapy cannot be utilized in this particular project. Struggling ...

The software is failing to extract the entire specification section

I attempted to extract the specifications for several URLs, such as "Example Link - https://in.rsdelivers.com/product/3m/3400961/fall-arrest-fall-recovery-kit-3m-3400961/1965607". However, with the code provided, I was only able to extract half of the sp ...

Confirm that images have been loaded correctly and are visible on the website by utilizing Selenium

In this validation scenario, when checking the website using URL response we receive a 200 OK response. However, there are cases where images on the website fail to load due to errors in CSS or JS files. I am seeking a solution to validate this specific s ...

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 ...

What is the best way to initiate a code sequence only when a specific word is detected on a page using Selenium in Python 3.8?

I've been working on a code that takes a screenshot of a webpage if it contains a specific word. My setup includes using Python 3.8 and Chrome Webdriver through Selenium. Here's what I've tried so far, but unfortunately, it doesn't see ...

Tips for preventing the need to reinstall a new driver package and instead utilizing the WebDriverManager package for selenium automation testing

Looking for a way to skip the hassle of reinstalling new driver packages and instead utilize the WebDriverManager package for your selenium automation tests? ...

Troubleshooting issues with Selenium frame switching in Chrome version 58

Recently, after updating my Chrome browser to version 58, I encountered an issue where I am unable to switch to a specific frame. Here is the code snippet that I have been using: driver.switchTo().frame(frameId); I also attempted to use alternative overl ...

Is there a way to verify the presence of an element on a webpage using Selenium XPath?

I am currently working on a script to perform web scraping on my Firebase for specific users. My goal is to check if any events have been logged by a user after accessing their events page. To achieve this task, I am utilizing Selenium and Python. While X ...

I'm facing issues with XPath, even if I directly copied it from Chrome's inspect tool

I've been attempting to automate my tasks and we rely on service-now for our requests. Despite my efforts, I can't seem to get Selenium to function correctly on the service-now website. It works on the login page without any issues, but when it c ...

Preventing chromedriver from taking focus on Ubuntu 16.04 LTS with Selenium

My selenium script is designed to scrape a website. However, I am facing an issue where each time the script opens a new link, Google Chrome launches a new window and takes focus away from other open windows on my Ubuntu 16.04 LTS system. I have attempted ...

Error in Selenium with Webdriver: displaying "null" in case of NoneType

I encountered an issue while attempting to crawl a bank website using the Google Chrome driver. Whenever the type is 'NoneType', I need the code to print 'null'. This code was written in Jupyter Notebook within Anaconda3. from bs4 impo ...

The Selenium driver fails to regain control even after setting the page load timeout using driver.set_page_load_timeout() method

I've encountered an issue where the code functions for a variable number of iterations between 0 and 40, but ultimately comes to a halt on browser.get(url), despite setting the timeout parameter option. browser = webdriver.Chrome(chrome_options = opt ...

Capybara gaining access to a single session simultaneously from two separate threads

Currently, I have a Ruby script that utilizes Capybara with the Selenium Chrome driver. The script navigates through a website, and at some point, an unexpected notification pops up that needs to be dismissed. I am wondering if it's feasible to imple ...

Automated Chrome conceals text within CodeceptJS WebdriverIO test cases

Recently, I have just set up a new installation of Chrome Version 67.0.3396.87 and followed the steps outlined in to initialize a project and create a test scenario as shown below: Feature('Hidden Text'); Scenario('test something', ( ...

The chromedriver.exe application encountered an error while attempting to open the URL "http://www.example.com/" using the driver.Navigate().GoToUrl method

When using navigate.GoToUrl("http://www.example.com/"), the ChromeDriver.exe stops working, but functions properly when the FirefoxDriver is used: using (IWebDriver driver = new ChromeDriver(DRIVER_PATH)) { // driver.Manage().Timeouts().ImplicitlyWait ...

Struggling to find the right XPath with Chrome Inspect Elements in Selenium: Comparing @id="layers" to @id="react-root" in Python

I am trying to find the right XPATH for the username box on Twitter's login page using Selenium. Here is my simplified code: from selenium import webdriver from selenium.webdriver import Keys from selenium.webdriver.chrome.service import Service from ...

Is there a way to track the number of stories I've viewed with selenium?

I am currently working on an Instagram Bot using the python selenium library. The bot's main task is to visit the pages of specific accounts and watch their stories. I am now trying to figure out how to keep track of the number of stories the bot has ...

Obtaining a PDF file from Chrome through VBA Selenium

I am currently facing a challenge with downloading multiple PDF files from a specific website. The usual process involves clicking on the save button or using the keyboard shortcut "CTRL + S". If you'd like to learn more, you can click here to acces ...

The UPX tool is currently unavailable for compressing the selenium pyinstaller one file.exe

Despite reading countless posts on this topic, I still can't find a solution! My folder path is located at: C:\Users\User\Desktop\Data Analytics Arg\py_inst Within the folder, I created a virtual environment, added the chrome ...

Discovering all form elements with Selenium can be done by following these steps

I've been attempting to retrieve all the elements of a form using selenium, but haven't been successful so far. My goal is to achieve this dynamically without explicitly specifying the id or class of the form's elements; Selenium should be a ...

Press a radio button using Python Selenium

Struggling to choose a radio button with Python Selenium here. I've exhausted all possible solutions found online, but none seem to work for the specific website I'm dealing with. Here's the complete code snippet: import time from selenium ...

Chrome Automation Tool for Selenium

Currently encountering an issue with the Chrome driver in Automation Testing. Whenever I run the code, it prompts the following messages and subsequently closes my page. SLF4J: No SLF4J providers were found. SLF4J: Defaulting to no-operation (NOP) logger i ...

Selenium in Node.js was unable to locate the ChromeDriver along the current PATH

Encountering an error while executing automation with Selenium on the production server. The code is stored in FileZilla FTP application: Error: ChromeDriver not found on the current PATH. Download the latest version from http://chromedriver.storage.google ...

Selenium requires root privileges to function properly, as indicated by the WebDriverException message stating that the /usr/bin/chromedriver service exited unexpectedly

Recently, I encountered an issue with a selenium script that I am running within another python program. Interestingly, this program runs smoothly when I am logged into the server using ssh as root. However, it refuses to execute properly when run by the w ...

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 ...

What are the reasons for the intermittent failures in my Selenium Automation test suite?

My test suite is experiencing intermittent failures with the error 'Element not found' even after implementing various wait mechanisms such as waitForPageLoad, Thread.sleep, and explicit waits for element loading. The failures occur sporadically. ...

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 ...

Encountered an error when attempting to load extension from popup box during execution of selenium scripts

Whenever I attempt to execute my Selenium script in Java, I encounter a popup box with the following message: Failed to load extension from: C:\Users\xyz\AppData\Local\Temp\scoped_dir20432_5430\internal. Loading of unpac ...

ChromeDriver stops functioning and fails to establish a new session in selenium-jvm if Chrome is already running

Here are the two issues I am facing with my selenium-java test case: When I trigger my selenium-java test against Chrome when a browser is already open, it doesn't open a new chrome session. Instead, it uses the existing open Chrome and starts openi ...

inaccurate outcomes being produced by the xpath axes that came before

Below is an example of HTML code: <!DOCTYPE html> <html> <body> <div class="Animal" align="center"> <h2>Animal</h2> <div class="Vertebrate" align=" ...

What is the best way to compare just the section of text that includes numbers?

I have a list created using: driver.find_elements_by_* When printed with .text, the list looks like this: 17.4K gems 8.5K gems 11.4K gems 9.7K gems Is it possible to compare only the numbers without creating a new list of extracted numbers? So that the c ...

Is it possible to stop chromedriver.exe before running tests with selenium in C#?

I'm struggling with properly closing the selenium chromedriver after running tests. Whenever I use driver.quit(), it seems there's always a lingering chromedriver.exe process in the background. During debugging, I frequently stop tests midway t ...

Utilizing remote debugging for Internjs implemented on Selenium's ChromeDriver

When it comes to remotely debugging tests run by Internjs, the process involves running Chrome with Selenium and Chromedriver. To set up the debuggerAddress option for Chromedriver: debuggerAddress: '127.0.0.1:8765' However, upon running tests ...

Insufficient data in CSV file while saving data using Selenium

I recently began working with Selenium and following tutorials on a popular video platform. While the tool has been mostly reliable, I encountered an issue where the CSV file was created but did not export the displayed data. The CSV seemed to be "touched" ...

Encountering Issues with Opening Chrome Browser Window C# Selenium Webdriver

Here is a Selenium script to open the Chrome browser in C# on Windows 10 using Visual Studio Code. Chrome version 74 (64 bit) and corresponding ChromeDriver version 74.0.3729.6 are being used. It's important to note that Chrome is not installed in the ...

My Selenium webdriver page is about to close, what is the best course of action?

Currently, I am in the process of developing an automation tool for LinkedIn. The goal is to have the application navigate to the LinkedIn login page and input the required e-mail and password. While this functionality is working as intended, a recurring i ...

When attempting to generate a chrome instance using a different profile, new instances are created by chrome that are not linked to selenium

I am facing issues connecting to Chrome with the selected profile via options. Below is the code snippet: options.add_argument('--user-data-dir={}'.format(user_data_dir)) options.add_argument('--profile-dir={}'.format(profile_dir)) Eve ...

Selenium in Python hangs on a website's loading page

First and foremost, the website I frequent is GamerMarkt. The code snippet I implemented: from selenium import webdriver browserProfile = webdriver.ChromeOptions() browserProfile.add_argument("start-maximized") browserProfile.add_argument(' ...

Is there a way to transfer my existing Chrome profile to Selenium for testing purposes?

I am seeking a way to utilize Selenium in conjunction with my existing Chrome profile, even if it is currently being used. My goal is to initiate Selenium automation that can recognize any cookies set in my current Chrome session and have the ability to mo ...

Slow loading times on websites while using Selenium with VBA

Recently, I have been utilizing Selenium VBA for some of my automation tasks. However, I have noticed that the webpages are taking significantly longer to load compared to when using the Chrome browser directly. Specifically, after successfully logging in ...

It is not possible to save a function in a variable within Selenium

While working on my first selenium code, I encountered the following: browser.get('https://www.jetbrains.com/pycharm/') browser.find_element_by_link_text('Download') <selenium.webdriver.remote.webelement.WebElement (session="69f ...

Terminate the driver using driver.quit() when an exception is not properly handled

I have a Python script that is designed to continuously run another Python script in a loop. The way I execute it is by using the command python loop.py script.py The secondary script, script.py, utilizes selenium and chromedriver for its operations. My g ...

Details about the Chrome driver can be found in the console

While running my selenium tests with ChromeDriver, I am seeing this message in the console: Starting ChromeDriver 2.15.322448 (521791b310fec1797c81ea9a20326839860b7d3) on port 15823 Is there a method to hide or prevent this message from appearing in the ...

A guide on setting a default download location in Selenium

Is there a way to set a default download path in Selenium when using headless chrome in Docker? # docker-compose.yml services: chrome: container_name: chrome image: selenium/standalone-chrome-debug:3.9.1-actinium ports: - 4444:4444 Below ...

Issue with clicking Selenium button using button.click() not resolved

Recently, I attempted to load a page and click on a button, but it seems that something is going wrong. I used to be familiar with these tasks, but the new update in Selenium has made things more challenging now. Below is the code snippet: import selenium ...

Starting a selenium-based standalone executable without the need for Chrome to be installed

Recently, I successfully created a Python script utilizing Selenium and a Chromedriver webdriver. I then used cx_freeze to convert my script into an executable (.exe) file for easy execution by double-clicking. However, the downside is that the script reli ...

Encountering an error while attempting to conduct a load test in Azure using the Selenium Chrome driver

While conducting a Load test locally, everything runs smoothly. Chrome opens and performs the necessary actions without any issues. However, when attempting to run the test online in Azure, an error is encountered: The Initialization method SeleniumWebLoa ...

Unleashing the power of incognito mode in Chrome while utilizing Selenium

I am encountering an issue after adding the following line of code: options.addArguments("--incognito"); to enable chrome incognito mode. The error message I am getting is: Exception in thread "main" org.openqa.selenium.SessionNotCreate ...

The element is unclickable due to being obstructed by another element

My task is to click on a button using this code: browser.find_element_by_id('btnSearch') However, the button is being blocked by a div tag with the following attributes: <div id="actionSearch" class="row pull-right"> How can I work around ...

The Selenium WebDriverWait encountered the issue of "Element is not clickable" despite being implemented

I encountered an issue with the code below (br represents the webdriver and all necessary imports are in place). Initially, the first three lines perform as expected. However, when attempting to execute link1.click(), I encounter an error: link = WebDriv ...

Running a Python cron job in AWS EC2 without Chrome browser being active

For the past month, I've used an EC2 instance to run a Python script with cron daily. The script utilizes Selenium, and everything was functioning smoothly until today when it suddenly stopped running. Even after attempting to manually run the script ...

Encountered a naming issue when attempting to use Selenium to access the Google

Currently experimenting with the Selenium webdriver to launch Google using Chrome, but encountering an error. from selenium import webdriver driver = web.driver.Chrome(r'C:\Users\sahay\Downloads\chromedriver.exe') driver.ma ...

Installing selenium, chrome driver, and wdio alongside vagrant or docker integration

When I first tried to learn how to write automated tests for a small project, I faced some difficulties as things weren't working smoothly right from the start. After spending a couple of hours searching and experimenting, I finally found the correct ...

Selenium successfully initializes a session with Chrome, only to abruptly crash moments later

Encountering errors when attempting to start a session. selenium.common.exceptions.SessionNotCreatedException: Message: session not created from chrome not reachable (Session info: chrome=80.0.3987.132) selenium.common.exceptions.SessionNotCreatedE ...

Exploring solutions for table counter in Web Crawler using Selenium and Webdriver

I have a question regarding web crawling and specifically targeting the hkgolden website. I utilized Selenium and WebDriver (Chromedriver) to create this web crawler. My current goal is to determine the number of tables located at: https://forumd.hkgold ...

Ways to eliminate authentication login popup

How can I bypass the authentication login popup that appears when I visit and click "cancel"? I attempted to dismiss this alert using the following code: driver.Url = "https://the-internet.herokuapp.com/basic_auth" However, I encountered an error. Her ...

The Java Selenium code seems to be having trouble launching the web browser

I am a beginner in selenium and attempting to open in the chrome browser using selenium (see code below). However, I am not seeing the chrome browser display after running this code. Can someone point out what's wrong with this code? Below is the co ...

random identifier selection using selenium's xpath and css selector algorithm

Hello, I am a newcomer to using Selenium with Python. I am facing an issue where the id, xpath, and css selector contain random values each time I navigate to the page. I have tried using various methods like xpath, id, css selector, and even class name to ...

Cycling through a lineup of proxy servers sequentially from 0 to 10

When working on my Python script, I need to input 3 pieces of data named A, B, and C. To make this more efficient, I am looking to organize the data into arrays such as arrayA = [A1, A2 ... A10], arrayB, and arrayC. Each array will contain different variat ...

Excessive tab usage in headless Chrome driver on Selenium with Python in Linux causes connection loss

Running my headless chrome driver on an AWS EC2 instance has been smooth sailing until I hit around 8 tabs, at which point the driver becomes "Unreachable". This issue doesn't occur on MAC and htop reveals that despite having ample memory available (a ...

Tips for fixing the error message "Cannot perform Native Injection on a launchbrowser method annotated with @BeforeSuite"

Encountering issues while attempting to launch the chrome driver with selenium and TestNG framework. Despite trying various methods, the testcase fails consistently and is always skipped. This being my first project, I am at a loss. Here is the error log: ...

Selenium has encountered a problem and is no longer functioning properly. An error message has been received, stating: "element click intercepted:

Recently, my Python script that was functioning flawlessly for a significant period to browse a website in headless mode using Selenium suddenly encountered an issue. The 'Submit' button on this particular page used to be clickable without any tr ...

Navigating through Chrome browser settings using Selenium

Currently, I am utilizing Java along with Selenium to create a test. The following code is used to access the Chrome settings: driverChrome.manage().window().maximize(); driverChrome.get("chrome://settings"); However, upon opening the page, I encountered ...

Having trouble with running Selenium tests

I've recently embarked on my Selenium journey, starting off by learning it through freecodecamp and acclimating myself with the tools. I downloaded Selenium using this command in Python: pip install selenium In addition to that, I manually installed ...