For comparison, here is the first demo script. Much easier to use, less error-prone, and is overall actually useful.
sugarActivityName = 'Calculate'
def sugarbot_main(widgets):
one = widgets['1']
plus = widgets['+']
enter = widgets['enter']
one.click()
plus.click()
one.click()
enter.click()
widgets['TextEntry'].text = "1+5"
assert widgets['TextEntry'].text == '1+5'
enter.click()
No comments:
Post a Comment