Refactored all clicks to use the css_click method

This commit is contained in:
JonahStanley
2013-07-03 10:34:56 -04:00
parent 9a5326bca5
commit 19513e4134
4 changed files with 16 additions and 16 deletions

View File

@@ -115,7 +115,7 @@ def clickActionLink(checklist, task, actionText):
# text will be empty initially, wait for it to populate
def verify_action_link_text(driver):
return action_link.text == actionText
return world.css_text('#course-checklist' + str(checklist) + ' a', index=task) == actionText
world.wait_for(verify_action_link_text)
action_link.click()
world.css_click('#course-checklist' + str(checklist) + ' a', index=task)