cucumber_steps 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/cucumber_steps/browser/click_steps.rb +4 -2
- data/lib/cucumber_steps/browser/hover_steps.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 91c8254682300dbc569f5ec56fe437f9990203f1
|
4
|
+
data.tar.gz: 309a57de69540aff5c7ced5ac02b4e5276b3f2c0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3590d7b26eede5a6094d7eb4498734e7403c9820ab604f3ecc065bd956862755e9841f275a5e09607772ee4b0b7131d985ccc91e42030e63f967fda16504a02c
|
7
|
+
data.tar.gz: 599c4e9bcdd4e371e5a5546177ee792a30ae1a6bade6be9dfe1d02263e526270d49d880b71c50762bae308300cfea91e268ee98415325abca52524947cd73237
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.3
|
@@ -1,16 +1,18 @@
|
|
1
|
-
|
2
|
-
And /^I click to the "([^"]+)" field that is near to the "([^"]+)" label$/i do |tag_name,label_text|
|
1
|
+
And /^I click to the "([^"]+)" field that is near to the "([^"]+)" label$/i do |tag_name, label_text|
|
3
2
|
relative_positioned_label = browser.current_scope.label(text: label_text).when_present
|
4
3
|
element_to_click = relative_positioned_label.parent.element(tag_name: tag_name).when_present
|
4
|
+
element_to_click.hover rescue nil
|
5
5
|
element_to_click.click
|
6
6
|
end
|
7
7
|
|
8
8
|
And /^I press the "([^"]+)" button$/i do |button_text|
|
9
9
|
element_to_click = browser.current_scope.element(text: button_text).when_present
|
10
|
+
element_to_click.hover rescue nil
|
10
11
|
element_to_click.click
|
11
12
|
end
|
12
13
|
|
13
14
|
And /^I press click to the element that html attributes match the following: (.*)$/ do |raw_html_attributes|
|
14
15
|
element_to_click = browser.current_scope.element(parse_html_attributes(raw_html_attributes)).when_present
|
16
|
+
element_to_click.hover rescue nil
|
15
17
|
element_to_click.click
|
16
18
|
end
|