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.
Files changed (2) hide show
  1. data/lib/selenium_dsl/commands.rb +4 -1
  2. 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 (value=prm[/[=]+/]) && value.length==1
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))
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: selenium-dsl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: