selenium-webdriver-python

Trying to interact with HTML page elements, but none of them are found

Trying to interact with HTML page elements, but none of them are found Question: I’m trying to scrape a webpage using Selenium, but when I try to pass the XPath of a button, I get an error saying that this element does not exist. I tried with another website, and it worked perfectly. I also …

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

selenium.common.exceptions.WebDriverException: Message: unknown error: DevToolsActivePort file doesn't exist with chromium browser and Selenium Python

selenium.common.exceptions.WebDriverException: Message: unknown error: DevToolsActivePort file doesn't exist with chromium browser and Selenium Python Question: I want to run selenium through chromium. I wrote this code: from selenium import webdriver from selenium.webdriver.chrome.options import Options options = Options() options.add_argument("start-maximized") options.add_argument("disable-infobars") options.add_argument("–disable-extensions") options.add_argument("–disable-gpu") options.add_argument("–disable-dev-shm-usage") options.add_argument("–no-sandbox") options.binary_location = "/snap/bin/chromium" driver = webdriver.Chrome(chrome_options=options) But this code throws an error: …

Total answers: 5