cucumber_steps 0.0.2 → 0.0.3

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: 4efc35587812f06bdbf4d9bd034b8d2faafd1ab3
4
- data.tar.gz: fb74e0882da5e087429e9d00a158d8580f6c5ff4
3
+ metadata.gz: 91c8254682300dbc569f5ec56fe437f9990203f1
4
+ data.tar.gz: 309a57de69540aff5c7ced5ac02b4e5276b3f2c0
5
5
  SHA512:
6
- metadata.gz: d265af2fc6b9fe720c7c50c564147b357908c1d0946746dc051776b4895a0aa704d7296ca6e156d9b822f85cdfcc28cdffb153817fac094d93290b2bfc7ee7dd
7
- data.tar.gz: a49837581a26a349d8353fcec7efc0304fdde195d6546b23a613cbb767a86680fb66a77d7d1d0b9314df6fc2c3950f5207d302a5800aa5cffdcd787c57fedc5d
6
+ metadata.gz: 3590d7b26eede5a6094d7eb4498734e7403c9820ab604f3ecc065bd956862755e9841f275a5e09607772ee4b0b7131d985ccc91e42030e63f967fda16504a02c
7
+ data.tar.gz: 599c4e9bcdd4e371e5a5546177ee792a30ae1a6bade6be9dfe1d02263e526270d49d880b71c50762bae308300cfea91e268ee98415325abca52524947cd73237
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.2
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
@@ -1,4 +1,4 @@
1
- And /^I hover(?: mouse)? to the "([^"])" button$/i do |button_text|
1
+ And /^I hover(?: mouse)? to the "([^"])+" button$/i do |button_text|
2
2
  browser.current_scope.element(text: button_text).when_present.hover
3
3
  end
4
4
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cucumber_steps
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Luzsi