chrome = 'C:\Program Files (x86)\Google\Chrome\Application\chrome.exe'
def loginToMendelu(username, password):
openApp(chrome)
type('l', Key.CTRL)
paste('http://is.mendelu.cz/')-
type(Key.ENTER)
wait(1)
assert exists(
)
click(
)
if exists(
):
click(
)
paste(username)
type(Key.TAB)
paste(password)
click(
)
def downloadAndOpenStudyConfirmation():
click(
)
click(
)find("__CLICK-TO-CAPTURE__")
wait(1)
assert exists(
)
click(
)
wait(4)
type('j', Key.CTRL)
assert exists(
)
click(
)
loginToMendelu('xgajdos3', '')
downloadAndOpenStudyConfirmation()