From c708a96763264ddd1fd81e17861b36197c8e7822 Mon Sep 17 00:00:00 2001 From: Dan Howe Date: Fri, 16 Aug 2019 10:32:30 +1000 Subject: [PATCH] Fix username and password check --- spectur_live_view.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spectur_live_view.py b/spectur_live_view.py index 382231f..5a57e24 100644 --- a/spectur_live_view.py +++ b/spectur_live_view.py @@ -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')