# -*- coding: utf-8 -*- import names def main(): startApplication("denali") test.compare( waitForObjectExists(names.o_treatmentHome).visible, True) test.compare(str(waitForObjectExists(names.o_treatmentHome_startTreatment ).text.text), "START TREATMENT" ) test.compare(str(waitForObjectExists(names.o_treatmentHome_createTreatment).text.text), "CREATE TREATMENT") test.compare( waitForObjectExists(names.o_mainMenu).visible, True) test.compare(str(waitForObjectExists(names.o_mainMenu_treatment).text.text), "Treatment") test.compare(str(waitForObjectExists(names.o_mainMenu_manager ).text.text), "Manager" ) test.compare(str(waitForObjectExists(names.o_mainMenu_settings ).text.text), "Settings" ) mouseClick (waitForObjectExists(names.o_mainMenu_manager )) test.compare(waitForObjectExists(names.o_managerHome ).visible, True) mouseClick (waitForObjectExists(names.o_mainMenu_settings )) test.compare(waitForObjectExists(names.o_settingsHome ).visible, True) mouseClick (waitForObjectExists(names.o_mainMenu_treatment)) test.compare(waitForObjectExists(names.o_treatmentHome).visible, True)