- added patch to check if ssid is visible in sanity

Signed-off-by: Sushant Bawiskar <sushant.bawiskar@candelatech.com>
This commit is contained in:
sushant
2022-02-02 12:57:40 +05:30
committed by Sushant Bawiskar
parent 02e3145cd8
commit fd89fe313d

View File

@@ -1023,7 +1023,7 @@ def get_ip_address_ios(request, WifiName, WifiPass, setup_perfectoMobile, connDa
available_ssids = get_all_available_ssids(driver) available_ssids = get_all_available_ssids(driver)
allure.attach(name="Available SSIDs in device: ", body=str(available_ssids)) allure.attach(name="Available SSIDs in device: ", body=str(available_ssids))
try: try:
if (WifiName not in available_ssids ) and (not ssid_Visible(driver, WifiName)): if (not ssid_Visible(driver, WifiName)) and (WifiName not in available_ssids):
scrollDown(setup_perfectoMobile) scrollDown(setup_perfectoMobile)
time.sleep(2) time.sleep(2)
else: else:
@@ -1790,7 +1790,7 @@ def get_ip_address_eap_ios(request, WifiName, User, ttls_passwd, setup_perfectoM
available_ssids = get_all_available_ssids(driver) available_ssids = get_all_available_ssids(driver)
allure.attach(name="Available SSIDs in device: ", body=str(available_ssids)) allure.attach(name="Available SSIDs in device: ", body=str(available_ssids))
try: try:
if (WifiName not in available_ssids ) and (not ssid_Visible(driver, WifiName)): if (not ssid_Visible(driver, WifiName)) and (WifiName not in available_ssids):
scrollDown(setup_perfectoMobile) scrollDown(setup_perfectoMobile)
time.sleep(2) time.sleep(2)
else: else: