What do you want to save?
Add Code snippet
New code examples
-
Other 2021-11-10 13:03:21
salenium
from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.common.keys import Keys from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support.expected_conditions import presence_of_elem... Add solution -
Python 2021-11-10 09:14:39
selenium screenshot python user agent
from selenium import webdriver user_agent = 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.50 Safari/537.36' options = webdriver.ChromeOptions() # specify headless mode options.add_argument('headless') # specify... Add solution -
Python 2021-11-10 02:08:14
python selenium select dropdown
from selenium import webdriver from selenium.webdriver.support.ui import Select driver = webdriver.Firefox() driver.get('url') select = Select(driver.find_element_by_id('fruits01')) # select by visible text select.select_by_visible_text('Banana') # se... Add solution -
Python 2021-11-09 23:27:21
python selenium implicit wait
from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC driver = webdriver.Firefox() driver.get("http://somed... Add solution -
Java 2021-11-09 18:28:18
selenium java
from selenium import webdriver from selenium.webdriver.common.keys import Keys driver = webdriver.Firefox() driver.get("http://www.python.org") assert "Python" in driver.title elem = driver.find_element_by_name("q") elem.cle... Add solution -
Python 2021-11-08 18:09:13
cannot find opera binary selenium python
from selenium import webdriver from selenium.webdriver.opera.options import Options options = Options() options.binary_location = r'C:\path\to\opera.exe' driver = webdriver.Opera(opera_options = options, executable_path=r'C:\Utility\BrowserDrivers\operad... Add solution -
Other 2021-11-08 14:42:25
explicit wait in selenium
from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC driver = webdriver.Firefox() driver.get("http://somed... Add solution -
Python 2021-11-06 03:55:07
how to install drivers for selenium python
#in the terminal add the following pip install webdriver-manager #in the script add the following to the imports from selenium import webdriver from webdriver_manager.chrome import ChromeDriverManager #then add the following line to create the page web ... Add solution -
Other 2021-11-06 00:22:10
what kind of wait do you have in your framework
- Synchronization is making sure our driver and browser are on the same page. - Since selenium browser driver is a lot faster compared to the browsers , we use different types of waits to make sure selenium is synchronized with browsers. There ar... Add solution -
Python 2021-11-05 10:21:04
open a web page using selenium python
from selenium import webdriver from selenium.webdriver.common.keys import Keys driver = webdriver.Chrome('./chromedriver') driver.get("https://www.python.org") print(driver.title) search_bar = driver.find_element_by_name("q") search_b... Add solution