ImportAnImagingSession.sikuli

(Download this script)
import os
address = os.getcwd()
#address = "/home/es1076/GITROOT/GoFigure2/Testing/Sikuli/gofigure2_images"

#address = address+"/gofigure2_images"
print address
setBundlePath(address)

hover()
wait(1)
click()

#click("File.png")
#click("Use_database.png")
#click("Next.png")
#click("text_box.png")
#click on create new project

click()
wait(1)
click()
assert exists()
click()

click()
wait(1)
type("Second"+Key.TAB+Key.TAB+"Author")
click()
#user cannot press enter for Create Author button 
click()
#BUG: the create author popup does not disappear after you create one author. Need to x out
click()


keyDown(Key.SHIFT)
type(Key.TAB+Key.TAB+Key.TAB+Key.TAB)
keyUp(Key.SHIFT)
wait(1)
type("Project Name")
click()
keyDown(Key.SHIFT)
type(Key.TAB+Key.TAB+Key.TAB+Key.TAB+Key.TAB)
keyUp(Key.SHIFT)
wait(1)
type("ImagingSession1")
type(Key.TAB+Key.TAB)


length = len(address) -50
user = address[0:length]


#this info should be input to function
type(user+)
click()
wait(1)
type("microscope2")
click()
click()
click()




click()