webdriverwait

How to find an element with multiple class names using Xpath or CssSelector

How to find an element with multiple class names using Xpath or CssSelector Question: I want to access this element: div data-v-658f4ceb="" class="trn-gamereport-list trn-gamereport-list–compact"> I know that since it has multiple names in the class I would need to use either the XPath or CSS selector method to access it but whenever I try either …

Total answers: 1

Selenium cant find element with xpath or ClassName or Css Selector (Python)

Selenium cant find element with xpath or ClassName or Css Selector (Python) Question: Hello I am trying to click The no thanks button on google look : enter image description here The full element of the button is this <button aria-label="No thanks" class="M6CB1c rr4y5c" jsname="ZUkOIc" jslog="71121; track:click;" data-dismiss="n">No thanks</button> I tried to select it with …

Total answers: 1

NoSuchElementException: Message: no such element: Unable to locate element error scraping the Model names using Selenium Python

NoSuchElementException: Message: no such element: Unable to locate element error scraping the Model names using Selenium Python Question: I’m trying to scrape data from the URL, but when I use the method find_elemnts() I get this error. I am trying to get some data. Here is my code: from selenium import webdriver from selenium.webdriver.common.keys import …

Total answers: 1

How to click 'View' button using Selenium on Wunderground Historical Weather page

How to click 'View' button using Selenium on Wunderground Historical Weather page Question: I’m trying to access the "View" button on the "https://www.wunderground.com/history" website using Selenium in Python but I’m unable to do so. I’ve tried multiple methods including: ActionChains("actions.move_to_element(button_view).click().perform()") browser.find_element(By.ID, ‘dateSubmit’).click() wait.until(EC.element_to_be_clickable((By.ID, ‘dateSubmit’))) actions.move_to_element(button_view).double_click(button_view) but none of them seems to work. Interestingly, when I …

Total answers: 1

How to select dropdown options with dynamic id and name values using Selenium

How to select dropdown options with dynamic id and name values using Selenium Question: I want to click a dropdown from a html webpage and click a chosen dropdown option. Unfortunately I can’t find the element because everytime I load the page the id and name values change with random letters and numbers. So I …

Total answers: 1

Python Selenium: Click element by custom attributes

Python Selenium: Click element by custom attributes Question: I am trying to click this button with Selenium: <button class="MuiButtonBase-root MuiButton-root jss38 MuiButton-contained MuiButton-containedPrimary" tabindex="0" type="button" data-test="unifiedCrazyButton"><span class="MuiButton-label">Let’s get crazy</span><span class="MuiTouchRipple-root"></span></button> I can’t do it by the class name, because there are other buttons with the same class name, and also the xpath value in this …

Total answers: 1

Scrape Name & Address from website site using Selenium Python

Scrape Name & Address from website site using Selenium Python Question: I would like to scrape the "Name" & "Address" from the following site: https://register.fca.org.uk/s/firm?id=001b000000MfNWNAA3 However I am struggling with the referencing the correct field within the page and returning the results Where I need your help is, to provide a working solution where the …

Total answers: 3

Acessing multiple anchor elements inside text

Acessing multiple anchor elements inside text Question: I have the following XPATH //a[@class=’product-cardstyles__Link-sc-1uwpde0-9 bSQmwP hyperlinkstyles__Link-j02w35-0 coaZwR’] This xpath, finds a lot of anchor tags similar to the following HTML sample <a href="/produto/10669/acucar-refinado-da-barra-pacote-1kg" class="product-cardstyles__Link-sc-1uwpde0-9 bSQmwP hyperlinkstyles__Link-j02w35-0 coaZwR" font-size="16" font-family="primaryMedium">Açúcar Refinado DA BARRA Pacote 1kg</a> What I want to do is not to acess it is href, …

Total answers: 2

How to avoid click intercept while sending text to email field using Selenium in headless mode

How to avoid click intercept while sending text to email field using Selenium in headless mode Question: I want to connect website. I write the following code: from time import sleep from fake_useragent import UserAgent from selenium.webdriver.support.ui import WebDriverWait as W from selenium.webdriver.support import expected_conditions as E from selenium import webdriver options = webdriver.ChromeOptions() options.add_argument("–start-maximized") …

Total answers: 2

Clicking on element by finding it first by column and row

Clicking on element by finding it first by column and row Question: I’m trying to click on element in table that is only seperated by columns and every colum only has one row. The table looks like this I tried locating element like this WebDriverWait(driver, 5).until(EC.element_to_be_clickable((By.XPATH, f"//div[@class=’srb-ParticipantLabelCentered gl-Market_General-cn1 ‘ and contains(., ‘140.0’)]/following::span[text() =’2.40′]"))).click() but instead …

Total answers: 2