About 5,260,000 results
Open links in new tab
  1. 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

  2. python - Selenium - wait until element is present, visible and ...

    Dec 1, 2019 · I have a Selenium script (Python) that clicks a reply button to make the class anonemail appear. The time it takes for the class anonemail to appear varies. Because of that I have to use sleep until the element has appeared. I want to wait until the class has appeared instead of using sleep.

  3. python - How can I download a file on a click event using selenium ...

    I am working on python and selenium. I want to download file from clicking event using selenium. I wrote following code. from selenium import webdriver from selenium.common.exceptions import

  4. python - How to change element class attribute value using …

    Sep 11, 2016 · I lost my credentials.. so I'm creating this new thread. The old question it here if it helps: How to click a button to vote with python I'd like to change this line: <a data-original-title="I...

  5. 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 = …

  6. How to locate and insert a value in a text box (input) using Python ...

    from selenium.webdriver.common.by import By Replace Input_you_want_to_send and THE_CLASS_OF_THE_ELEMENT below with the names you are using. Input_you_want_to_send = driver.find_element(By.CLASS_NAME, 'THE_CLASS_OF_THE_ELEMENT')

  7. Selenium (Python) - SELECT - Stack Overflow

    Selenium (Python) - SELECT. Ask Question Asked 9 years, 8 months ago. Modified 5 years, 6 months ago ...

  8. Is there a way to perform a mouseover (hover over an element) …

    I am using: Python 2.7, Windows Vista, Selenium 2, Python Bindings. EDIT: There is a method mouse_over for a selenium.selenium.selenium object but I cannot figure a way to create an instance without having the stand-alone server running already.

  9. python - How to perform right click using Selenium ChromeDriver ...

    Nov 25, 2016 · Note that Selenium can't do anything about browser level context menu, so I assume your link will pop up HTML context menu. from selenium import webdriver from selenium.webdriver import ActionChains driver = webdriver.Chrome() actionChains = ActionChains(driver) actionChains.context_click(your_link).perform()

  10. Get HTML source of WebElement in Selenium WebDriver using …

    Apr 7, 2014 · Updated 2022 Selenium Retrieving HTML. To start with, download the Python bindings for Selenium WebDriver. One can do this from the PyPI page for the Selenium package. Alternatively, one can use pip to install the Selenium package. Python 3.6 provides the pip in the standard library. Method 1

Refresh