   (testing "wait for text simple"
     (doto *driver*
       (refresh)
+      (wait-visible {:id :document-end})
       (click {:id :wait-button})
       (wait-has-text "-secret-"))
     (is true "text found"))
   (testing "wait for text timeout"
     (doto *driver*
       (refresh)
+      (wait-visible {:id :document-end})
       (click {:id :wait-button}))
     (try+
      (wait-has-text *driver*

  (is 1)
  (testing "wait for an element has class"
    (doto *driver*
      (refresh)
      (click {:id :wait-add-class-trigger})
      (wait-has-class {:id :wait-add-class-target} :new-one))))


               :interval 0.1
               :times 6})))))
  (testing "wait for non-existing text"
    (doto *driver*
      (refresh)
      (wait-visible {:id :document-end}))
    (try+
     (wait-has-text *driver*
                    "-dunno-whatever-foo-bar-"
