Fix username and password check

master
Dan Howe 5 years ago
parent 8ca67936b8
commit c708a96763

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

Loading…
Cancel
Save