#Selenium imports here from selenium import webdriver from selenium.webdriver.common.keys import Keys from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.common.by import By from selenium.webdriver.support.wait import WebDriverWait #Other imports here import os import wget driver = webdriver.ChromeDriver('C:\chromedriver_win32\chromedriver.exe') drover.get('https://www.instagram.com')
def setup:(self): self.selenium = webdriver.ChromeDriver() super(BookingViewsTests, self).setup()
def get_headless_chrome_driver(headlessChromeOptions): get_driver_location(WebDriverFile.CHROME.getFileName()) return webdriver.ChromeDriver(headlessChromeOptions)
from selenium import webdriver browser = webdriver.ChromeDriver() browser.get('http://seleniumhq.org/')
def get_chrome_driver(chromeOptions, size): get_driver_location(WebDriverFile.CHROME.getFileName()) driver = webdriver.ChromeDriver(chromeOptions) driver.setBrowserSize(driver, size) return driver