- added sleep in wifi connection

Signed-off-by: Sushant Bawiskar <sushant.bawiskar@candelatech.com>
This commit is contained in:
sushant
2021-09-15 20:59:53 +05:30
committed by Sushant Bawiskar
parent 0c10fbaffb
commit e6a57b4a8e

View File

@@ -1107,7 +1107,9 @@ def get_ip_address_and(request, WifiName, WifiPass, setup_perfectoMobile, connDa
try:
report.step_start("Clicking Wi-Fi")
print("Clicking WIFI")
wifiElement = driver.find_element_by_xpath("//*[@text='Wi-Fi']")
time.sleep(3)
wifiElement = WebDriverWait(driver, 10).until(
EC.presence_of_element_located((MobileBy.XPATH,"//*[@text='Wi-Fi']")))
wifiElement.click()