Answers for "linux seleneium pythongui"

0

linux seleneium pythongui

#!/usr/bin/env python3

from selenium.webdriver import Chrome
from selenium.webdriver.chrome.options import Options

opts = Options()
opts.headless = True

driver = Chrome(options=opts, executable_path='chromedriver.exe')

try:
    driver.get('http://webcode.me')

    assert 'My html page!' == driver.title

finally:

    driver.quit()
Posted by: Guest on March-13-2021

Python Answers by Framework

Browse Popular Code Answers by Language