-
Notifications
You must be signed in to change notification settings - Fork 2
/
tester.py
36 lines (28 loc) · 908 Bytes
/
tester.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
"""
File name: main.py
Author: Seung Won Joeng
Date created: 7/14/2021
Date last modified: 7/16/2021
Python Version: 3.7
"""
from selenium import webdriver
"""
Web driver Chrome test - YOU DON'T NEED TO RUN THIS SCRIPT
"""
class WebDriverChrome(object):
def __init__(self):
self.driver = self.StartWebdriver()
def StartWebdriver(self):
options = webdriver.ChromeOptions()
options.add_argument("start-maximized")
options.add_experimental_option("excludeSwitches", ["enable-automation"])
options.add_experimental_option("useAutomationExtension", False)
driver = webdriver.Chrome(options=options)
return driver
def RunStart(self):
self.driver.get('https://bot.sannysoft.com')
# time.sleep(10)
# self.driver.quit()
if __name__ == '__main__':
Crawl = WebDriverChrome()
Crawl.RunStart()