Skip to content

Commit

Permalink
Update func.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Bruuuuuuce authored Oct 19, 2020
1 parent 8c9d20b commit 4f541fb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions func.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,11 @@ def go_to_application_out(driver):
def go_to_application_in(driver, userName, password):
driver.back()
driver.back()
WebDriverWait(driver, 5).until(
EC.visibility_of_element_located((By.CLASS_NAME, 'el-card__body')))
time.sleep(0.5)
driver.find_element_by_class_name('el-card__body').click()
try:
WebDriverWait(driver, 5).until(
EC.visibility_of_element_located((By.CLASS_NAME, 'el-card__body')))
time.sleep(0.5)
driver.find_element_by_class_name('el-card__body').click()
WebDriverWait(driver, 5).until(
EC.visibility_of_element_located((By.CLASS_NAME, 'el-select')))
except:
Expand Down

0 comments on commit 4f541fb

Please sign in to comment.