mirror of
https://github.com/Telecominfraproject/wlan-testing.git
synced 2025-11-01 19:37:54 +00:00
- added sleep in wifi connection
Signed-off-by: Sushant Bawiskar <sushant.bawiskar@candelatech.com>
This commit is contained in:
committed by
Sushant Bawiskar
parent
0c10fbaffb
commit
e6a57b4a8e
@@ -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()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user