|
|
@ -22,8 +22,8 @@ URL = 'https://camera.uwatchit.com.au/UWatchitWebV2/User/LiveView#'
|
|
|
|
OUTPUT_DIR = 'images'
|
|
|
|
OUTPUT_DIR = 'images'
|
|
|
|
TIMEZONE = 'Australia/Sydney'
|
|
|
|
TIMEZONE = 'Australia/Sydney'
|
|
|
|
WAIT_TIME = 0.1
|
|
|
|
WAIT_TIME = 0.1
|
|
|
|
username = ''
|
|
|
|
username = 'unsw'
|
|
|
|
password = ''
|
|
|
|
password = 'Unsw123'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def start_session():
|
|
|
|
def start_session():
|
|
|
@ -53,7 +53,7 @@ def login(driver):
|
|
|
|
driver.get(URL)
|
|
|
|
driver.get(URL)
|
|
|
|
|
|
|
|
|
|
|
|
# Login automatically if details provided
|
|
|
|
# Login automatically if details provided
|
|
|
|
if username and password:
|
|
|
|
if (username and password):
|
|
|
|
# Get login fields
|
|
|
|
# Get login fields
|
|
|
|
usr = driver.find_element_by_id('UserName')
|
|
|
|
usr = driver.find_element_by_id('UserName')
|
|
|
|
pss = driver.find_element_by_id('Password')
|
|
|
|
pss = driver.find_element_by_id('Password')
|
|
|
|