pyrite 0.5.9 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/pyrite/dsl.rb +2 -2
- metadata +3 -3
data/lib/pyrite/dsl.rb
CHANGED
@@ -61,11 +61,11 @@ module Pyrite
|
|
61
61
|
def wait_for(element)
|
62
62
|
case element
|
63
63
|
when :page_load
|
64
|
-
browser.wait_for
|
64
|
+
browser.wait_for(:wait_for => :page)
|
65
65
|
when :ajax
|
66
66
|
browser.wait_for(:wait_for => :ajax, :javascript_framework => Pyrite.js_framework)
|
67
67
|
else
|
68
|
-
browser.wait_for
|
68
|
+
browser.wait_for(:element => "css=#{element}")
|
69
69
|
end
|
70
70
|
end
|
71
71
|
|