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 ...
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/ # ...
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 ...
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 ...
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 ...
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 ...
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 ...
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. - ...
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 ...
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& ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
Looking for a way to skip the hassle of reinstalling new driver packages and instead utilize the WebDriverManager package for your selenium automation tests? ...
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 ...
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'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 ...
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 ...
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 ...
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 ...
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 ...
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', ( ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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. ...
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 ...
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 ...
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 ...
Below is an example of HTML code: <!DOCTYPE html> <html> <body> <div class="Animal" align="center"> <h2>Animal</h2> <div class="Vertebrate" align=" ...
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 ...
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 ...
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 ...
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" ...
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 ...
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 ...
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 ...
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(' ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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: ...
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 ...
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 ...
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 ...