watir_drops 0.5.1 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.md +4 -0
- data/lib/watir_drops/page_object.rb +0 -8
- data/lib/watir_drops/training_wheels.rb +0 -17
- data/watir_drops.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b5383694f0e0dc64a11078fadafa72f4b3d2bf81
|
4
|
+
data.tar.gz: cee23620fb06d3c2740f11127d8522018a7cd3bc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 92ee5257ec1ccfd1a545fe09a2c303c4637c1dabc1ea174b161ebf4ebb4dc006c96defa691b1409e0a3835f6ea19dc28c12ea2c70634eff2f2222e49af092b33
|
7
|
+
data.tar.gz: d61cdb2a9df1a3a9165053d988accd20e34d2dfbb121ad5c5b952beb0a1d839fd2d9f52206c9f9dd277ef445aae3544ffcf5e7e2bd489345f0e9243d634bbb21
|
data/CHANGES.md
CHANGED
@@ -34,14 +34,6 @@ module WatirDrops
|
|
34
34
|
self.instance_exec(*args, &block)
|
35
35
|
end
|
36
36
|
|
37
|
-
define_method(name.to_s.pluralize) do |*args|
|
38
|
-
single_element = self.instance_exec(*args, &block)
|
39
|
-
parent = single_element.instance_variable_get('@parent')
|
40
|
-
selector = single_element.instance_variable_get('@selector')
|
41
|
-
element_type = selector.delete(:tag_name) || 'element'
|
42
|
-
parent.send(element_type.pluralize, selector)
|
43
|
-
end
|
44
|
-
|
45
37
|
define_method("#{name}=") do |val|
|
46
38
|
watir_element = self.instance_exec &block
|
47
39
|
watir_element.wait_until_present
|
@@ -40,23 +40,6 @@ module WatirDrops
|
|
40
40
|
end
|
41
41
|
end
|
42
42
|
|
43
|
-
define_method(instance_method_name.to_s.pluralize) do |*args|
|
44
|
-
if block.is_a? Proc
|
45
|
-
expected_class = browser.send(class_method_name.to_s.pluralize).class
|
46
|
-
|
47
|
-
single_element = self.instance_exec(*args, &block)
|
48
|
-
parent = single_element.instance_variable_get('@parent')
|
49
|
-
selector = single_element.instance_variable_get('@selector')
|
50
|
-
element_type = selector.delete(:tag_name) || 'element'
|
51
|
-
element = parent.send(element_type.pluralize, selector)
|
52
|
-
|
53
|
-
return element if element.is_a?(expected_class) || class_method_name.to_s.include?('element')
|
54
|
-
raise StandardError, "#{instance_method_name} method was defined as a #{expected_class}, but is a #{element.class}"
|
55
|
-
else
|
56
|
-
browser.send(class_method_name.to_s.pluralize, locator)
|
57
|
-
end
|
58
|
-
end
|
59
|
-
|
60
43
|
element_list << instance_method_name.to_sym
|
61
44
|
end
|
62
45
|
end
|
data/watir_drops.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: watir_drops
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Titus Fortner
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-02-
|
11
|
+
date: 2016-02-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|