webdriverwait

Python Selenium not able to click on elements

Python Selenium not able to click on elements Question: I want to click on each product on aliexpress and do something with it. However, I kept running into an ElementClickInterceptedException Please verify that the code is correct before answering the question if you are using chat-GPT or any other AI to help with this problem. …

Total answers: 1

Getting the HTML element using Selenium WebDriver

Getting the HTML element using Selenium WebDriver Question: I’m trying to get price of a product on amazon using Selenium: from selenium import webdriver from selenium.webdriver.chrome.service import Service from selenium.webdriver.common.by import By url = "https://www.amazon.in/Celevida-Kesar-Elaichi-Flavor-Metal/dp/B081WJ6536/ref=sr_1_5?crid=3NRZERQ8H4T8L&keywords=dr+reddys+celevida&qid=1672124472&sprefix=%2Caps%2C5801&sr=8-5" services = Service(r"C:UsersDeepak Shetterchromedriver_win32chromedriver.exe") driver = webdriver.Chrome(service=services) driver.get(url) price = driver.find_element(By.CLASS_NAME, "a-offscreen") print("price is "+price.text) As you can see in …

Total answers: 2

Can't find element by name using selenium

Can't find element by name using selenium Question: I’m using selenium 4.7.2 and can’t find the element by its name. The following code returns NoSuchElementException error: from selenium import webdriver from selenium.webdriver.common.by import By import time # Get the website using the Chrome webbdriver browser = webdriver.Chrome() browser.get(‘https://www.woofshack.com/en/cloud-chaser-waterproof-softshell-dog-jacket-ruffwear-rw-5102.html’) # Print out the result price = …

Total answers: 1

Python Selenium .click() Not Working but Server Response is 200

Python Selenium .click() Not Working but Server Response is 200 Question: I’m having a hard time coming up with a solution. I’m writing code in Python using the Selenium library to pull reports from a site we utilize. In order to access the reports, it has to click on a link to expand so the …

Total answers: 1

Why can't I retrieve the price from a webpage?

Why can't I retrieve the price from a webpage? Question: I am trying to retrieve a price from a product on a webshop but can’t find the right code to get it. Price of product I want to extract: https://www.berger-camping.nl/zoeken/?q=3138522088064 This is the line of code I have to retrieve the price: Prijs_BergerCamping = driver.find_element(by=By.XPATH, …

Total answers: 1

Click button with Selenium Python works only with debug mode

Click button with Selenium Python works only with debug mode Question: I tried to get data from the menu in this website. I’ve written this script which seems work well in debug mode. In this script, i close the chrome every time I’ve get information for certain city. In debug mode, the detail information is …

Total answers: 2

How to extract informations from a li tag with selenium

How to extract informations from a li tag with selenium Question: I have a website i want to scrape but the information am looking for is contained in an "li" tag. This "li" tag has no class or id. Also all the "li" tags are contained in an "ul" tag without class or id. There …

Total answers: 4

How can I wait for element attribute value with Selenium 4 n python?

How can I wait for element attribute value with Selenium 4 n python? Question: I want to handle the progress bar to be stopped after a certain percent let’s say 70%. So far I have got the solutions, they all are using .attributeToBe() method. But in selenium 4 I don’t have that method present. How …

Total answers: 1

How to separately send email to the form

How to separately send email to the form Question: I made web contact form, my email sending to subscribe email box , I want to send email to the form only. Please help me driver.get(‘https://shop.rtrpilates.com/’) driver.find_element_by_partial_link_text(‘Contact’),click try: username_box = driver.find_element_by_xpath(‘//input[@type="email"]’) username_box.send_keys("[email protected]") I don’t understand how can I create a block between this, Help please Advance …

Total answers: 1