diff --git a/libs/perfecto_libs/iOS_lib.py b/libs/perfecto_libs/iOS_lib.py index f101e236f..ca21eb7bb 100644 --- a/libs/perfecto_libs/iOS_lib.py +++ b/libs/perfecto_libs/iOS_lib.py @@ -1023,7 +1023,7 @@ def get_ip_address_ios(request, WifiName, WifiPass, setup_perfectoMobile, connDa available_ssids = get_all_available_ssids(driver) allure.attach(name="Available SSIDs in device: ", body=str(available_ssids)) 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) time.sleep(2) 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) allure.attach(name="Available SSIDs in device: ", body=str(available_ssids)) 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) time.sleep(2) else: