Commit 342b3ac5 by Dean Dieker

added a wait to take care of test failing when page loads slowly

parent 31fde337
......@@ -17,10 +17,12 @@ def i_should_see_an_element_with_class_of_classname(step,classname):
@step(u'I click on every item in every week of the course')
def i_click_on_every_item_in_every_week_of_the_course(step):
wait_until_id_renders('accordion',2)
chapters = world.browser.find_elements_by_xpath("//*[@id='accordion']//nav//h3")
num_chapters = len(chapters)
k = 1
while k <= num_chapters:
world.browser.find_element_by_xpath("//*[@id='accordion']//nav//h3["+str(k)+"]").click()
wait_until_class_renders('p',1)
k+=1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment