from ImageScripter import *
from elan import *


#UPS#################################################
Say("Checking the ups page")
Configurator.ups.Click()
Configurator.upspage.SetThreshold(.98)
Configurator.upspage.WaitContinue(seconds=10)
Say("Checking the ups page looks great")



Configurator.communicationdevices.Click()
Configurator.upscommunicationdevicespage.SetThreshold(.98)
Configurator.upscommunicationdevicespage.WaitContinue(seconds=10)

Configurator.upspowersupplies.Click()
Configurator.upspowersuppliespage.SetThreshold(.98)
Configurator.upspowersuppliespage.WaitContinue(seconds=10)

###UPS Right Click

Configurator.system.Click()
Configurator.ups.Click()

Configurator.communicationdevices.RightClick()
Configurator.communicationdevicesrightclickmenu.WaitContinue()
Configurator.grey.Click()


Configurator.upspowersupplies.RightClick()
Configurator.upspowersuppliesrightclickmenu.WaitContinue()
Configurator.grey.Click()




######################################################Window
###################################Communication Devices
Configurator.system.Click()
Configurator.ups.Click()
Configurator.communicationdevices.RightClick()
Configurator.addnewcommunicationdevice.RealClick()
Configurator.addnewcommunicationdevicewindow.WaitContinue()
Add.PushButton.Click('Cancel')
Press('enter')
Configurator.system.Click()
Configurator.ups.Click()
###################################UPS POWER SUPPLIES
Configurator.system.Click()
Configurator.ups.Click()
Configurator.upspowersupplies.RightClick()
Configurator.addnewupspowersupply.RealClick()
Configurator.addnewupspowersupplywindow.WaitContinue()
Add.PushButton.Click('Cancel')
Press('enter')




###Reset

Configurator.media.Click()
Configurator.system.Click()