About 101,000 results
Open links in new tab
  1. Fill username and password using selenium in python

    Jan 18, 2014 · How can I auto fill the username and password over the link below: from selenium import webdriver from selenium.webdriver.common.keys import Keys chromedriver = 'C:\\\\chromedriver.exe' browser =

  2. How to use Selenium with Python? - Stack Overflow

    Jul 9, 2013 · pip install -U selenium And use this module in your code . from selenium import webdriver You can also use many of the following as required . from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import Select from selenium.common.exceptions import NoSuchElementException Here is an updated answer

  3. Python Selenium Like for Desktop Application Automation

    Nov 5, 2015 · I am looking for a Python based Selenium like module that will let me control a standard desktop application like Paint.exe on windows to control it. I need a way to control clicks and selections automatically via Python.

  4. python - How to deal with certificates using Selenium ... - Stack …

    Jul 1, 2014 · from selenium import webdriver from selenium.webdriver.common.desired_capabilities import DesiredCapabilities from selenium.webdriver.firefox.firefox_binary import FirefoxBinary caps = DesiredCapabilities.FIREFOX.copy() caps['acceptInsecureCerts'] = True ff_binary = FirefoxBinary("path to the Nightly binary") driver = webdriver.Firefox(firefox ...

  5. Typing the Enter/Return key in Selenium - Stack Overflow

    Now that Selenium 2 has been released, it's a bit easier to send an Enter key, since you can do it with the send_keys method of the selenium.webdriver.remote.webelement.WebElement class (this example code is in Python, but the same method exists in Java):

  6. python - How to get rid of the infobar "Chrome is being …

    When you open Chrome Browser in through ChromeDriver this infobar containing the notification is embedded as follows:

  7. How to select a drop-down menu value with Selenium using …

    Mar 19, 2019 · from selenium import webdriver from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.common.by import By from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.support.ui import Select select = Select(WebDriverWait(driver, 10).until(EC.element_to_be_clickable((By.ID, "fruits01 ...

  8. How can I bypass the Google CAPTCHA with Selenium and Python?

    However, in a couple of use cases we were able to interact with the reCAPTCHA using Selenium and you can find more details in the following discussions: How to click on the reCAPTCHA using Selenium and Java; CSS selector for reCAPTCHA checkbok using Selenium and VBA Excel; Find the reCAPTCHA element and click on it — Python + Selenium

  9. python - How to bypass the message-"your connection is not …

    Feb 16, 2020 · Either of below 2 solutions worked for me using Python Chrome Selenium Webdriver: from selenium import webdriver from selenium.webdriver import DesiredCapabilities capabilities = DesiredCapabilities.CHROME.copy() capabilities["acceptInsecureCerts"] = True driver = webdriver.Chrome(desired_capabilities=capabilities) And accepted solution:

  10. How to generate a HTML report for automated tests on Selenium …

    Oct 3, 2023 · I an using Selenium with Pytest to automate tests in the company I work for (as a Jr Automation QA) and I can generate a HTML report if I run the tests with the code "pytest --html=report.html" but I can only see the logs for the failed tests and I would like to, somehow, being able to implement logging for every step of every test in a way ...