import os
address = os.getcwd()
#address = "home/es1076/GITROOT/GoFigure2/Testing/Sikuli/gofigure2_images"
#address = address+"/gofigure2_images"
print address
setBundlePath(address)
click(
)
click(
)
assert exists(
)
click(
)
for create in [1,2]:
click(
)
hover(
)
click(
)
assert exists(
)
if create == 1:
click(
)
assert not exists(
,0)
if create == 2:
click(
)
assert exists(
)
click(
)
assert not exists(
,0)
type(Key.TAB+Key.TAB)
wait(2)
type("gofigure" +Key.TAB + "gofigure")
click(
)
assert exists(
)
type(Key.TAB+Key.ENTER) #cancels it
#assert exists("There_is_problem_existing_users.png")
#click("Next_arrow.png")
#gofigure crashes at this step
#assert exists("Root_Password.png")
for i in [1,2]:
click(
)
assert exists(
)
wait(2)
type(Key.BACKSPACE)#+Key.BACKSPACE+Key.BACKSPACE+Key.BACKSPACE+Key.BACKSPACE+Key.BACKSPACE)
click(
)
assert exists(
)
if i == 1:
type(Key.ENTER) #cancel confirmation
assert not exists(
)
if i == 2:
click(
)
wait(5)
click(
)
click(
)
type(Key.BACKSPACE)#+Key.BACKSPACE+Key.BACKSPACE+Key.BACKSPACE+Key.BACKSPACE+Key.BACKSPACE)
click(
)
click(
)
wait(5)
click(
)
assert exists(
)
click(
)
type(Key.TAB+Key.TAB+"First"+Key.TAB+Key.TAB+"Last"+Key.TAB+Key.ENTER)
click(
)
click(
)
click(
)
type(Key.TAB+Key.TAB+Key.TAB+Key.ENTER)
assert exists(
)
click(
)
click(
)
click(
)
assert exists(
)
click(
)
keyDown(Key.SHIFT)
type(Key.TAB)
keyUp(Key.SHIFT)
wait(1)
type("microscope"+Key.TAB+Key.ENTER)
assert exists(
)
click(
)
click(
)
assert exists(
)
click(
)
click(
)
assert exists(
)
click(
)
assert not exists(
,0)
#click("Settings.png")
#click("Database_arrow.png")
#assert not exists("Set_up_database.png")