softwear-lib 0.0.17 → 0.0.18

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4ac2c8d7b7161999addf91016caab6f44f3b4dad
4
- data.tar.gz: 9d2b1bd4545bcbf451dbc73297a346baf6073bf9
3
+ metadata.gz: 984dca4944083eaf9ffe3deb14435844549a02f7
4
+ data.tar.gz: c4ed96eb930b965e462b0fa38123487d338cbd18
5
5
  SHA512:
6
- metadata.gz: 3c688a01c3e57392e957a1aca79910fd7e80e274af1ba3ca62cfb9df06bc5a55b1b98a52f27b99149ec90659e51d968afb64b1842b70a6ae5e17b804d271192c
7
- data.tar.gz: 416b4b8ab059bf372c23a02430864e5842661bb4e52d15fd23be1bce90295186bba1082911d290d045ba13d4ff04a8025361a10bd489d1567d99686a6fc10263
6
+ metadata.gz: ce35f4b0c99335ed65f7d571a660674c43ebf804e172fd6eb8a14efaffd20d2315830e7937c2829e206db9a922d79e0eb3b1cba2a7b00813ad8026b30a04b799
7
+ data.tar.gz: 329d770225ba1ed633e0e07f35a75c375fe6f7788cacde110b56f67e76bc6d9cafbd24f9642f02a1a8db8bef6aab2935a313bf62a3311ff1d5ba3afb74619628
@@ -118,6 +118,23 @@ module Softwear::Lib
118
118
  targetted_select2(value, options)
119
119
  end
120
120
 
121
+ def nogood_select2(value, from)
122
+ label = find_label_by_text(from[:from])
123
+
124
+ select2_container = nil
125
+ within label.first(:xpath,'.//..') do
126
+ select2_container = find('.select2-container')
127
+ end
128
+
129
+ select2_container.find(".select2-choice").click
130
+
131
+ find(:xpath, "//body").find("input.select2-input").set(value)
132
+ page.execute_script(%|$("input.select2-input:visible").keyup();|)
133
+ drop_container = ".select2-results"
134
+ find(:xpath, "//body").find("#{drop_container} li", text: value).click
135
+ end
136
+
137
+
121
138
  def select2_no_label value, options={}
122
139
  raise "Must pass a hash containing 'from'" if not options.is_a?(Hash) or not options.has_key?(:from)
123
140
 
@@ -1,5 +1,5 @@
1
1
  module Softwear
2
2
  module Lib
3
- VERSION = "0.0.17"
3
+ VERSION = "0.0.18"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: softwear-lib
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.17
4
+ version: 0.0.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nigel Baillie