selenium-dsl 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/selenium_dsl/commands.rb +4 -1
- metadata +1 -1
@@ -30,9 +30,11 @@ class SeleniumDsl
|
|
30
30
|
@driver.switch_to.window @driver.window_handles[0]
|
31
31
|
# binding.pry
|
32
32
|
end
|
33
|
+
# binding.pry
|
33
34
|
try-= 1
|
34
35
|
try>0 ? retry : raise(e.class,e.to_s)
|
35
36
|
else
|
37
|
+
puts "~>err: #{e.to_s}"
|
36
38
|
failed
|
37
39
|
end
|
38
40
|
end
|
@@ -62,6 +64,7 @@ class SeleniumDsl
|
|
62
64
|
try-= 1
|
63
65
|
try>0 ? retry : raise(e.class,e.to_s)
|
64
66
|
else
|
67
|
+
puts "~>err: #{e.to_s}"
|
65
68
|
failed
|
66
69
|
end
|
67
70
|
end
|
@@ -113,7 +116,7 @@ class SeleniumDsl
|
|
113
116
|
end
|
114
117
|
|
115
118
|
if cmd==[] #no command supplied
|
116
|
-
cmd << "~val" if (
|
119
|
+
cmd << "~val" if (str=prm[/[=~]+/]) && str.length==1
|
117
120
|
end
|
118
121
|
c1,c2 = cmd[0].split(':',2)
|
119
122
|
if (exc = in_commands?(c1))
|