openApp("D:\\MS\\Interop\\IntelliJ\\InstallFolder\\IntelliJIDEACommunityEdition\\bin\\idea.exe")
while exists("1410763469450-1.png"):sleep(3)
wait("1410763599145-1.png",60)
click("1408716102829-1.png")
wait("1408716434998-1.png",1800)
for n in range(4): 
 sleep(1)
 type(Key.TAB)
for n in range(2): 
 sleep(1)
 type(Key.ENTER)

wait("1410771774607-1.png",60)
ProjectName = "Sample"
paste(ProjectName)

for n in range(7): 
 sleep(1)
 type(Key.TAB)
type(Key.ENTER)
wait(Pattern("1410776176450-1.png").similar(0.80),60)
sleep(2)
rightClick("1410785156354.png")
type(Key.ALT + "f")
sleep(1)
type(Key.DOWN + Key.UP + Key.UP + Key.RIGHT) 
sleep(2)
type(Key.ENTER)
wait("1410785293792.png",30)
AzureProjectName = "AzureProject"
paste(AzureProjectName)
for n in range(2): 
 sleep(1)
 type(Key.TAB)
type(Key.ENTER)
wait("1410785743174.png",10)
sleep(2)
r = find("1409061481024.png").nearby(10)
t = r.find("1409117840021.png")
click(t)
sleep(1)
click(t)
sleep(2)
click("1409121625175.png")
wait("1409121645360.png")
sleep(2)
JDKPath = "C:\Program Files\Java\jre1.6.0"
paste(JDKPath)
type(Key.TAB + Key.TAB + Key.ENTER)
sleep(2)
click("1410851993827.png")
sleep(1)
click("1410852139527.png")
sleep(1)
type("a"  + Key.ENTER)
sleep(1)
sleep(1)
click("1409121759192.png")
r= find("1409121812654.png").nearby(10)
t = r.find("1409121861228.png")
click(t)
sleep(1)
click("1409121625175-1.png")
wait("1409121956780.png")
sleep(1)
ServerPath = "D:\MS\Interop\Tomcat\Jetty\jetty-8"
paste(ServerPath)
sleep(1)
type(Key.TAB + Key.TAB + Key.ENTER)
sleep(1)
click("1410856239421.png")
sleep(2)
wait("1410788195236-1.png",10)
sleep(2)
type(Key.ENTER) 
sleep(1)
type(Key.DOWN + Key.DOWN)
sleep(1)
rightClick("1410788347443-1.png")
type(Key.ALT + "f")
sleep(1)
type(Key.DOWN + Key.UP + Key.UP + Key.RIGHT + Key.DOWN + Key.ENTER)
sleep(3)
wait("1409129183315-1.png")
click("1409129208043-1.png")
wait("1409129222353-1.png")
click("1409129261046-1.png")
wait("1409129567170-1.png")
sleep(2)
PublishSettingFile = "D:\MS\Interop\AzurePublishSettingFile\CollaberaInteropTest-9-15-2014-credentials.publishsettings"
paste(PublishSettingFile)
sleep(2)
type(Key.TAB + Key.TAB + Key.ENTER)
sleep(2)
click("1409129853272-1.png")
wait("1410788893543-1.png",10)
while exists("1409131510174-1.png"): sleep(5)
sleep(2)
r = find("1409132671116-1.png").right(700)
t = r.find("1409132703085-1.png")
click(t)
sleep(2)
type("b" + Key.ENTER)
sleep(2)
r = find("1409221267480-1.png").right()
t = r.find("1409221567852-1.png")
click(t)
sleep(2)
type("d" + "d" + "d" + "d" + "d" + "d" + "d" + Key.ENTER)
sleep(2)
r = find("1409221724099-1.png").right()
t = r.find("1409221737500-1.png")
click(t)
sleep(2)
type("w" + "w" + Key.ENTER)
sleep(2)
r = find("1409221954037-1.png").right()
t = r.find("1409222176787-1.png")
click(t)
sleep(2)
type("s" + Key.ENTER)
sleep(2)
r= find("1409147154037-1.png").nearby(10)
t = r.find("1409147186219-1.png")
click(t)
sleep(1)
click(t)
sleep(2)
type(Key.TAB)
sleep(1)
paste("brilliotest")
sleep(1)
type(Key.TAB)
sleep(1)
paste("brillio@123")
sleep(1)
type(Key.TAB + Key.TAB)
sleep(1)
paste("brillio@123")
sleep(1)
click("1409148604792-1.png")
while exists("1409148699671-1.png"):sleep(5)
while exists("1409148815960-1.png"):sleep(5)


