示例#1
0
from selenium import webdriver
# from selenium.webdriver.chrome.options import Options
import BotEngine

# options = Options()
# options.headless = True
# driver = webdriver.Chrome(options=options)

chromedriver_path = "C:/Users/User/PycharmProjects/drivers/chromedriver_win32/chromedriver.exe"
driver = webdriver.Chrome(chromedriver_path)

BotEngine.init(driver)

driver.close()
示例#2
0
from selenium import webdriver
import BotEngine

chromedriver_path = r'PATH_TO_CHROMEDRIVE_EXECUTABLE'
webdriver = webdriver.Chrome(executable_path=chromedriver_path)

BotEngine.init(webdriver)
BotEngine.update(webdriver)

webdriver.close()
示例#3
0
from selenium import webdriver
import BotEngine
import Constants
import sys
path = ''

try:
    if sys.argv[1] == 'path':
        path = '../'
except:
    pass

chromedriver_path = "/Users/jmurillocordoba/Downloads/chromedriver"
webdriver = webdriver.Chrome(executable_path=chromedriver_path)

BotEngine.init(webdriver, path)
webdriver.close()