Last week, User @KunduK was generous enough to assist me in scraping a website to retrieve the address of a specific record. The record in question can be found at this link: We used the following code snippet: address=WebDriverWait(driver,10).until(EC.vi ...
I have been attempting to capture a screenshot of a webpage only once all images are completely loaded on it. Even though I searched for a solution on stack overflow, none of the suggestions have worked for me so far. The closest one I found is mentioned ...
Currently in the process of learning how to use Selenium with Python. I have been practicing on the BBC website, but I am a bit stuck on adding code for a specific screen. Specifically, I need help with identifying the fields "Email or username" and "Passw ...
Issue at hand: My code is running smoothly until I introduce a segment that involves clicking an arrow on the product square/profile. Main concern: While the code as a whole functions properly, the dataset it retrieves is distorted. Upon further investiga ...
Currently, I am developing a script that runs continuously and should halt once it detects the presence of text in a specific element on the webpage. Despite my search through the Selenium Python documentation, I have not found any guidance on achieving th ...
Can someone help me write an XPath for the 'Yes' label in green color on the UI image? I am new to automation and would appreciate any assistance. Below is my HTML code and UI snapshot: https://i.stack.imgur.com/affN5.png https://i.stack.imgur. ...
In Java, I utilize Selenium to access cookies from the local database. However, when using the following code snippet to wait for the site to be fully loaded, I do not receive all the cookies: webDriverWait.until(webDriver -> "complete".equals ...
I am currently using selenium to scrape data from a website. Here's the link to the website I am working on: . The specific information I am trying to extract is located under the player's 'statistics' section. My current code opens the ...
It seems like Selenium is retrieving data from an old page instead of the new one. I am attempting to automate a search process where I have to select an option from a dropdown menu and enter a value into a text box. from selenium import webdriver from se ...
When running tests, I encounter issues with implicit waits. The problem arises when certain frames in my project fail to load in time, causing the element to be loaded without the frame. I have tried using time.sleep() at the start, but it does not effecti ...
I have a web scraping situation where the site I'm working with is sometimes slow and unresponsive. Using a fixed SLEEP duration has resulted in errors after a few days. How can this issue be resolved? I rely on using SLEEP at different intervals within my ...
I am encountering an issue with my script that is writing values into a web page. All values are successfully written except for one field, which consistently displays the error message: https://i.stack.imgur.com/qzx65.png (A screenshot has been included b ...
Attempting to utilize Python Selenium for logging into doordash. Here's the code snippet: user_agent = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0.3 Safari/605.1.15" proxy = '5 ...
Encountering an issue with Selenium WebDriver where it hangs or gets stuck while switching back from a child window to the parent window. Interestingly, manually changing to a specific page in the parent window during debug mode allows for successful switc ...
Starting out with Python and Selenium, I'm eager to automate clicking the "Afficher plus" button on this specific webpage. I attempted the following code snippet: plus = driver.find_element_by_css_selector("button[class='b-btn b- ghost']") plus.click() ...
I have been trying to access the voter list database through this link Unfortunately, I am unable to retrieve the first drop-down menu. I am currently using selenium version 3.14 This is the code that I have written: user_agent = "Mozilla/5.0 (X11; ...
My webpage is structured like this: <ul> <li> <div> <div> <span class="buttonUpload" custom="call.js">Button Upload</span> <input class=" ...
I'm currently working on developing a Steam bot using Python that is intended to post within a Steam group. However, I am facing difficulties with the final phase as I am unable to locate the submit button. <button type="submit" class="btn_green_w ...
I am attempting to extract the initial value from a list (specifically "北京") on the following website: The xpath provided is: //*[@id="ttbar-mycity"]/div[2]/div[2]/div/div/div[1]/a Here is my code snippet: browser.find_element_by_xpath(&quo ...
Looking for the input box in this block of HTML: <div id="employeesDataTable_filter" class="dataTables_filter"> <label> <input type="search" class="form-control input-sm" placeholder="Filter..." aria-controls="employeesDataTable"> </l ...
While I have experience using selenium, I have not had the opportunity to utilize WebDriverWait until now. I am currently facing a situation where I need to click on a Back button, which appears to be available immediately but may not be accessible for a b ...
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 = "..."; ...
My goal was to automatically extract "quarterly" data from financial reports on Yahoo Finance, but I couldn't figure out how to do it. I initially tried clicking on "the quarterly button" on the financial page (), however, the code below didn't w ...
When using Selenium and Python, I am working on automating the process of clicking on targets.simple.csv to download a .csv file from the following page: This is the code snippet I have written: import pandas as pd import numpy as np from datetime import ...
Looking to access the element containing the text Deprecated within the website "" using selenium in the Chrome browser. WebDriverWait wait = new WebDriverWait(driver, 10); wait.until(ExpectedConditions.frameToBeAvailableAndSwitchToIt(driver.findElement(B ...
When running Selenium tests on a webpage, I often encounter reliability issues because the page is still processing "Vue" when the code begins searching for elements. It's essential to wait until Vue finishes loading before proceeding further. Is the ...
I am attempting to log in to the website. Unfortunately, I am encountering an issue with filling in my username and password. Specifically, I am having trouble with entering my username. It seems like I may be selecting the wrong class name, but I am not e ...
Having trouble clicking a button on a webpage that uses angularJS with ng-click. The specific page is located at: The button in question is the "Show all" button. To access the HTML, right-click on the button and select inspect. <a class="button b ...
I am working on iterating through a variety of checkboxes in order to verify their presence within a given list, and then click on them if they match the criteria. Here is an example of the HTML element that I have managed to extract: <label> < ...
I am currently facing a challenge with test automation implementation. Specifically, my test is checking for the display of a hamburger menu. I have identified the element and subelement, but I only want to wait for one second without wasting time if the e ...
While attempting to locate an element using the selectByVisibleText() method within a dropdown, the program continues to execute even when the specified text is not present in the dropdown. However, upon completion of the program, an error is displayed. H ...
Currently facing an issue while trying to extract data from a password-protected website using Selenium. The error occurs right at the login stage with the following message: NoSuchElementException: Message: no such element: Unable to locate element: {"met ...
My objective is to extract movie genres from the IMDB website through a different platform. The main page I am working with is: driver.get("https://sfy.ru/scripts") # main website Please note that you may encounter a "certificate is not v ...
When I click on a link, it opens in a new tab. My goal is to switch to that tab, close it, and then return to the original parent window. I've tried the following code but encountered an error. It seems like the control is not moving to the child window a ...
How can I extract the value inside a div using xpath or css_selector? This is the HTML markup: <div class="catalog-products view-tile" data-catalog-products="" data-slider-available="" data-primary-as-icon=""> ...
I am currently facing a challenge in trying to streamline my code for web scraping on eBay's website. The specific situation that I am stuck in involves starting from the following URL: https://www.ebay.co.uk/sch/i.html?_from=R40&_nkw=iphone+12&_oa ...
My current project involves creating a Selenium Python script that can pinpoint a specific location on the map website openstreetmap.org based on user input, such as "Moscow". Additionally, the script should be able to select a particular graphic layer for ...
While running my automation code, I encountered a frustrating webpage. Each time I click on an element, a new browser window pops up along with an alert message. Unfortunately, the alert seems to be unbreakable and I'm stuck unable to proceed further. D ...
Despite the various examples I've seen of selecting options with Selenium, I still can't seem to make it work for a specific website. I'm trying to choose the Excel option in the top-left Select. The HTML code is attached below. I attempted to approach t ...
I am encountering a problem where I cannot click on a button within the modal. The modal only appears when my selenium script is running, not when I navigate the webpage manually. Interestingly, the modal consistently appears when my script runs in try/exc ...
I am encountering difficulties in inputting a value into an element with a ng-class Attempted the following code snippet: driver.FindElement(By.Id("limit")).SendKeys("10.00"); without success. I also tried - driver.FindElement(By.Id("limit_display")).Sen ...
Experiment Scenario: Attempting to capture and evaluate Gmail Login functionality. Current Result: Upon running the WebDriver code, a Mozilla browser instance is launched. Although the username is successfully entered, the password field remains unfilled. ...
Currently, I am working on a Python script to automate a process in Selenium. This is my first experience with xpath and I am puzzled as to why the xpath I obtained from Chrome web inspect (F12) is not working. The xpath I copied after clicking on the text ...
I am currently learning Python and attempting to extract search results from python.org using the Selenium library. Here are the steps I want to follow: Open python.org Search for the term "array" (which will display the results) Paste the list of searc ...
Hey everyone, I'm currently facing a coding challenge and I need some assistance. Below are images of my code and the error I'm encountering. Can anyone provide me with guidance on how to fix this issue? https://i.stack.imgur.com/SBNy2.png http ...
Currently, I am working on creating a test scenario where users will go to a specific URL, input their login details, and then proceed to sign in by clicking a button. Everything is functioning correctly except for the button click action. I have attempted ...
On the page, there's a constantly visible div that remains blank until a button is clicked. Is it possible to hold off until text appears in the div, which was previously empty, and then retrieve the text? ...
I'm facing a challenge where I need my code to pause until a specific element appears before proceeding to extract text from it. When I manually step through the code and give enough time for the element to show up, everything works fine. However, when run ...
Is there a way to engage with the ddlDelegacion (dropdown menu) element on this webpage using Selenium WebDriver for Python? I need to periodically download updated documents from a government website for my family. The HTML code is provided below: <div ...
I am facing an issue with extracting the href of a specific cell in the infobox on a Wikipedia page (refer to the image below). I am particularly interested in obtaining the href of 3M's official website located after the table's row header "Website". The ...
When working with Selenium's expected conditions for wait, such as those mentioned here: https://selenium-python.readthedocs.io/api.html#module-selenium.webdriver.support.expected_conditions, I find myself unsure about which one to use or if that is e ...
Attempting to retrieve data from a website named: , specifically targeting the element: /html/body/div[1]/div/main/div/div[2]/div/div[2]/div/div/div[1]/div[4]/div[2]/div[1]/div[1]/div[2]/span[2] which displays volume as a number on the webpage. The code I ...
Testing out some code: import java.time.Duration; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.edge.EdgeDriver; import org.openqa.selenium.support.ui.ExpectedConditio ...
I attempted to extract data from a webpage using Python and Selenium: from selenium import webdriver driver=webdriver.Firefox() driver.get('https://covid19.min-saude.pt/ponto-de-situacao-atual-em-portugal/') 'RECUPERADOS' in driver.page ...
I've been attempting to click on that button, but no matter what I try, I can't seem to make it work. button id = edita_customer Here is the HTML code snippet: <div class="card mb-3" style="color: #ace;"> <div class=" ...
Apologies if this question has been asked before. I have looked through numerous answers on this platform, but I am still unable to retrieve the tool-tip text. I can see the title without using the Actions class to hover over and display the tool-tip. Ho ...
After experiencing an issue that I was able to resolve using explicit wait, I found myself questioning the inner workings of Selenium WebDriver. It's puzzling how applying an implicitly wait for 300 seconds continued to result in a stale element refer ...
After installing chropath to help me find the xpath for websites, I tried to locate the username field on a specific website using Selenium from selenium import webdriver from selenium.webdriver.common.keys import Keys driver = webdriver.Chrome("C:\ ...
After successfully using xpath to retrieve the text from the first paragraph, I encountered issues with getting the text from the second and third paragraphs. The console output showed them as empty. The problematic strings were: String secondAns , String ...
Element not found using specified id, name, xpath or CSS selector Attempts were made with the following codes, but both failed to yield a response wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath("//*[@id=\'form\']/p/ ...
The element is embedded within a tag, but despite several attempts, I have been unable to successfully click on it. wait.until(ExpectedConditions.elementToBeClickable(By.xpath("//input[@value='Login to Register']"))).click(); Additionally, WebElement el ...
Currently, I am attempting to automate the login process on a website using Selenium with Python. Unfortunately, I encountered an error message shown below. Traceback (most recent call last): File "C:UsersKienThongAutomationLearningGmailDemo.py ...
Today I decided to dive into learning Selenium, but I've hit a roadblock while trying to click on an element that looks like this: <a rel="nofollow" style="" href="javascript:void(0);" time="" itemid="1523208 ...
I'm working on creating an Xpath to target and click on a specific radioButton. Take a look at the element and Xpath below: Xpath: /html/body/div[3]/div[2]/form/table/tbody/tr[5]/td[2]/label[1]/input Element: <input type="radio" ng-model="dat ...
I've been working on automating the job application process on the Indeed website using Selenium. However, I've encountered an issue where I am unable to select the 'Continue' button to move to the next page. Despite trying XPath, CSS selectors, and Class ...
Regarding the following HTML: https://i.stack.imgur.com/7Jddo.png I am trying to use Selenium to select the paragraphs located on the left side of the screen. I attempted using class_name and id, but encountered a NoSuchElementException. Why is this erro ...
My goal is to first click the button and then automatically select the dropdown menu element labeled Tüm Soru Tipleri using Selenium in Java. I have tried the following code which did not work: driver.findElement(By.id("select2-question_types-sq-res ...
On the page, there is a specific button that needs to be clicked: <div _ngcontent-jnk-c107="" class="btn btn-primary btn-outline" tabindex="0" ng-reflect-router-link="/opportunity/1">VIEW</div> Identifyi ...
I am encountering a problem where the price is not being displayed and I am getting empty output. You can find the page link here. from selenium import webdriver import time from selenium.webdriver.common.by import By from selenium.webdriver.support.wait ...
I am attempting to utilize wait.Until(SeleniumExtras.WaitHelpers.ExpectedConditions.ElementIsVisible(By.Id("logonIdentifier"))); However, I am encountering an error stating 'Could not load file or assembly 'SeleniumExtras.WaitHelpers'. My projec ...
Whenever I attempt to click on a button to select files and then submit in the popup, it does not recognize either the popup or the button within it. In order to select the modal-content driver.switchTo().frame("modal-content"); Here is the error messag ...
I need help selecting the Wireless button on a pop-up window that appears within the same window. There are no iFrames generated and I'm unable to locate any elements inside this Wifi-Connect window. Any suggestions? Here is the code I've attempted: dri ...
I'm currently working on automating the process of adding products to a basket on Amazon and verifying if the basket count changes after items have been added. To achieve this, I am using explicit waits to ensure that the products are added properly. Howe ...
I am encountering an error while using the Selenium package to automate button clicks on a website. The specific error message is: selenium.common.exceptions.TimeoutException: Message: Below is the code snippet that I'm attempting to execute: import tim ...
Couldn't locate a specific element on the webpage https://cloud.google.com/products/calculator/ Trying to find and interact with the 'Number of GPUs' element on the aforementioned site, then select '1' from the dropdown menu that ...