 
 
         @driver.getCurrentUrl().then (pageUrl) =>
-
+          @addTimeout(3)
           @driver.findElements(css: '[data-type="exercise"] .question').then (elements) =>
             if elements.length
               console.log "Found #{elements.length} exercises"

      for i in [1..SECTIONS_TO_TEST]
        # Selenium sometimes keeps pressing the same next button (doneLoading doesn't seem to work 100%)
        @driver.findElement(css: 'a.nav.next').getAttribute('href').then (oldHref) =>
          console.log '----------------'
          # console.log 'old ashkd', oldHref
          @driver.findElement(css: 'a.nav.next').click()

              newHref isnt oldHref

          ifPageDidntChange = =>
            @addTimeout(3)
            console.log 'Page did not change. reclicking.'
            @driver.findElement(css: 'a.nav.next').click()
            @driver.wait(doneLoading)
