|
|
@ -40,7 +40,7 @@ def return_to_master_frame(driver):
|
|
|
|
driver.switch_to.frame(webhyd)
|
|
|
|
driver.switch_to.frame(webhyd)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def wait_for_element(driver, by, x, timeout=30):
|
|
|
|
def wait_for_element(driver, by, x, timeout=60):
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
element_present = EC.presence_of_element_located((by, x))
|
|
|
|
element_present = EC.presence_of_element_located((by, x))
|
|
|
|
WebDriverWait(driver, timeout).until(element_present)
|
|
|
|
WebDriverWait(driver, timeout).until(element_present)
|
|
|
@ -61,7 +61,7 @@ def get_telemetered_bore(driver, bore_id, start_date, end_date):
|
|
|
|
|
|
|
|
|
|
|
|
# Wait for results frame to load
|
|
|
|
# Wait for results frame to load
|
|
|
|
WebDriverWait(
|
|
|
|
WebDriverWait(
|
|
|
|
driver, timeout=30).until(
|
|
|
|
driver, timeout=60).until(
|
|
|
|
EC.frame_to_be_available_and_switch_to_it('gwgwlf_org'))
|
|
|
|
EC.frame_to_be_available_and_switch_to_it('gwgwlf_org'))
|
|
|
|
|
|
|
|
|
|
|
|
# Wait until body text of iframe has loaded
|
|
|
|
# Wait until body text of iframe has loaded
|
|
|
@ -85,7 +85,7 @@ def get_telemetered_bore(driver, bore_id, start_date, end_date):
|
|
|
|
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()
|
|
|
|
driver.switch_to.parent_frame()
|
|
|
|
WebDriverWait(
|
|
|
|
WebDriverWait(
|
|
|
|
driver, timeout=30).until(
|
|
|
|
driver, timeout=60).until(
|
|
|
|
EC.frame_to_be_available_and_switch_to_it('gwgwcf_org'))
|
|
|
|
EC.frame_to_be_available_and_switch_to_it('gwgwcf_org'))
|
|
|
|
wait_for_element(driver, By.ID, 'submit')
|
|
|
|
wait_for_element(driver, By.ID, 'submit')
|
|
|
|
|
|
|
|
|
|
|
@ -137,7 +137,7 @@ def get_telemetered_bore(driver, bore_id, start_date, end_date):
|
|
|
|
driver,
|
|
|
|
driver,
|
|
|
|
By.XPATH,
|
|
|
|
By.XPATH,
|
|
|
|
"//div[contains(@class, 'lity-container')]",
|
|
|
|
"//div[contains(@class, 'lity-container')]",
|
|
|
|
timeout=30)
|
|
|
|
timeout=60)
|
|
|
|
webdriver.ActionChains(driver).send_keys(Keys.ESCAPE).perform()
|
|
|
|
webdriver.ActionChains(driver).send_keys(Keys.ESCAPE).perform()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|