selenium-cucumber 0.0.6 → 0.0.7

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.
@@ -6,53 +6,16 @@ Then(/^I wait for (\d+) sec$/) do |time|
6
6
  end
7
7
 
8
8
  # wait for specific element to display for specific period of time
9
- #By ID
10
- Then(/^I wait (\d+) seconds for element to display having id "(.*?)"$/) do |duration, access_name|
11
- wait_for_element_to_display("id",access_name,duration)
12
- end
13
-
14
- #By NAME
15
- Then(/^I wait (\d+) seconds for element to display having name "(.*?)"$/) do |duration, access_name|
16
- wait_for_element_to_display("name",access_name,duration)
17
- end
18
-
19
- #By CLASS
20
- Then(/^I wait (\d+) seconds for element to display having class "(.*?)"$/) do |duration, access_name|
21
- wait_for_element_to_display("class",access_name,duration)
22
- end
23
-
24
- #By XPATH
25
- Then(/^I wait (\d+) seconds for element to display having xpath "(.*?)"$/) do |duration, access_name|
26
- wait_for_element_to_display("xpath",access_name,duration)
27
- end
28
9
 
29
- #By CSS
30
- Then(/^I wait (\d+) seconds for element to display having css "(.*?)"$/) do |duration, access_name|
31
- wait_for_element_to_display("css",access_name,duration)
10
+ Then(/^I wait (\d+) seconds for element to display having (.+) "(.*?)"$/) do |duration, type, access_name|
11
+ validate_locator type
12
+ wait_for_element_to_display(type,access_name,duration)
32
13
  end
33
14
 
34
15
  # wait for specific element to enable for specific period of time
35
- #By ID
36
- Then(/^I wait (\d+) seconds for element to enable having id "(.*?)"$/) do |duration, access_name|
37
- wait_for_element_to_enable("id",access_name,duration)
38
- end
39
-
40
- #By NAME
41
- Then(/^I wait (\d+) seconds for element to enable having name "(.*?)"$/) do |duration, access_name|
42
- wait_for_element_to_enable("name",access_name,duration)
43
- end
44
16
 
45
- #By CLASS
46
- Then(/^I wait (\d+) seconds for element to enable having class "(.*?)"$/) do |duration, access_name|
47
- wait_for_element_to_enable("class",access_name,duration)
17
+ Then(/^I wait (\d+) seconds for element to enable having (.+) "(.*?)"$/) do |duration, type, access_name|
18
+ validate_locator type
19
+ wait_for_element_to_enable(type,access_name,duration)
48
20
  end
49
21
 
50
- #By XPATH
51
- Then(/^I wait (\d+) seconds for element to enable having xpath "(.*?)"$/) do |duration, access_name|
52
- wait_for_element_to_enable("xpath",access_name,duration)
53
- end
54
-
55
- #By CSS
56
- Then(/^I wait (\d+) seconds for element to enable having css "(.*?)"$/) do |duration, access_name|
57
- wait_for_element_to_enable("css",access_name,duration)
58
- end
@@ -1,5 +1,5 @@
1
1
  module Selenium
2
2
  module Cucumber
3
- VERSION = "0.0.6"
3
+ VERSION = "0.0.7"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: selenium-cucumber
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-07-08 00:00:00.000000000 Z
12
+ date: 2014-07-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: cucumber
@@ -59,6 +59,7 @@ files:
59
59
  - lib/selenium-cucumber/input_steps.rb
60
60
  - lib/selenium-cucumber/javascript_handling_steps.rb
61
61
  - lib/selenium-cucumber/navigation_steps.rb
62
+ - lib/selenium-cucumber/press_button_steps.rb
62
63
  - lib/selenium-cucumber/progress_steps.rb
63
64
  - lib/selenium-cucumber/screenshot_steps.rb
64
65
  - lib/selenium-cucumber/version.rb
@@ -67,7 +68,9 @@ files:
67
68
  - lib/selenium-cucumber/methods/configuration_methods.rb
68
69
  - lib/selenium-cucumber/methods/input_methods.rb
69
70
  - lib/selenium-cucumber/methods/javascript_handling_methods.rb
71
+ - lib/selenium-cucumber/methods/misc_methods.rb
70
72
  - lib/selenium-cucumber/methods/navigate_methods.rb
73
+ - lib/selenium-cucumber/methods/press_button_methods.rb
71
74
  - lib/selenium-cucumber/methods/progress_methods.rb
72
75
  - lib/selenium-cucumber/methods/required_files.rb
73
76
  - lib/selenium-cucumber/methods/screenshot_methods.rb
@@ -81,6 +84,7 @@ files:
81
84
  - doc/installation.md
82
85
  - doc/selenium-cucumber-API.md
83
86
  - doc/selenium-cucumber-help.md
87
+ - doc/selenium-cucumber-help.txt
84
88
  - bin/selenium-cucumber
85
89
  homepage: http://seleniumcucumber.wordpress.com/
86
90
  licenses: