Added wait with driver check of Xpath for trust in EAP scenario (#696)

Signed-off-by: haricharan-jaka <haricharan.jaka@candelatech.com>

Signed-off-by: haricharan-jaka <haricharan.jaka@candelatech.com>
This commit is contained in:
Haricharan Jaka
2022-09-15 14:38:18 +05:30
committed by GitHub
parent 0dd9abc431
commit 49ca226b03

View File

@@ -2028,7 +2028,8 @@ def get_ip_address_eap_ios(request, WifiName, User, ttls_passwd, setup_perfectoM
driver.implicitly_wait(4)
report.step_start("Clicking Trust CA Cert")
print("Clicking Trust CA Cert")
certElement = driver.find_element_by_xpath("//*[@label='Trust']")
certElement = WebDriverWait(driver, 45).until(
EC.presence_of_element_located((MobileBy.XPATH,"//*[@label='Trust']")))
certElement.click()
except NoSuchElementException:
print("Password Page Not Loaded, password May be cached in the System")