Index: suite_leahi/tst_headerbar_wifi_indicator/test.py =================================================================== diff -u -r845657f82743b8c2699e7ce608bacf1330561553 -rc641ef1cd371fa90784d7fc843072987ed9c0d92 --- suite_leahi/tst_headerbar_wifi_indicator/test.py (.../test.py) (revision 845657f82743b8c2699e7ce608bacf1330561553) +++ suite_leahi/tst_headerbar_wifi_indicator/test.py (.../test.py) (revision c641ef1cd371fa90784d7fc843072987ed9c0d92) @@ -11,15 +11,10 @@ import names -from configuration import config +from configuration import config, utility from leahi_dialin.ui import utils -def wifi_popup_text_obj(text): - names.o_HeaderBar_Wifi_PopuoParameters["text"] = text - return names.o_HeaderBar_Wifi_PopuoParameters - - def headerbar_wifi_popup(): """ Method to verify "WiFi" Pop-up @@ -48,7 +43,9 @@ # The test environment is running the UI application in an Ubuntu OS within VMware, # where the WiFi button is not enabled in the UI. So Comparing error message - wifi_popup_text = waitForObjectExists(wifi_popup_text_obj(config.WIFI_POPUP_TEXT)) + wifi_popup_text = waitForObjectExists( + utility.setObjectText(names.o_HeaderBar_Wifi_PopuoParameters, config.WIFI_POPUP_TEXT) + ) test.compare( wifi_popup_text.text, config.WIFI_POPUP_TEXT,