首页 > 代码库 > selenium(webdriver)验证

selenium(webdriver)验证

import os,time
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
chromedriver = ‘C:\Program Files (x86)\GoogleChromePortable\App\Chrome-bin\chromedriver.exe‘
options = webdriver.ChromeOptions()
options.add_argument(‘--ignore-certificate-errors‘)
driver = webdriver.Chrome(executable_path=chromedriver,chrome_options=options)
driver.get(‘https://192.168.200.31/‘)

selenium(webdriver)验证