From 182d8f34cc60f6f83be210d822ef60594a8f0a6f Mon Sep 17 00:00:00 2001 From: Dan Howe Date: Fri, 22 Feb 2019 11:22:08 +1100 Subject: [PATCH] Add missing quotes around javascript function call --- waternsw_grabber/waternsw_grabber.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/waternsw_grabber/waternsw_grabber.py b/waternsw_grabber/waternsw_grabber.py index f1e5f81..ac4fb44 100644 --- a/waternsw_grabber/waternsw_grabber.py +++ b/waternsw_grabber/waternsw_grabber.py @@ -103,7 +103,7 @@ def get_telemetered_bore(driver, bore_id, start_date, end_date): wait_for_element(driver, By.XPATH, '//*[@id="tabstext"]') # Activate outputs tab, and wait for 'Get Output' button - driver.execute_script(menuloc.display_frame('gw', 'gwcf_org', '1')) + driver.execute_script("menuloc.display_frame('gw', 'gwcf_org', '1')") driver.switch_to.parent_frame() wait_for_element(driver, By.ID, 'gwgwcf_org') driver.switch_to.frame('gwgwcf_org')