selenium_dsl 1.0.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: selenium_dsl
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,10 +9,26 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-02-13 00:00:00.000000000 Z
12
+ date: 2013-02-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
- name: selenium-client
15
+ name: selenium-webdriver
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
30
+ - !ruby/object:Gem::Dependency
31
+ name: selenium
16
32
  requirement: !ruby/object:Gem::Requirement
17
33
  none: false
18
34
  requirements:
@@ -74,6 +90,7 @@ files:
74
90
  - .idea/scopes/scope_settings.xml
75
91
  - .idea/selenium_dsl.iml
76
92
  - .idea/vcs.xml
93
+ - .idea/workspace.xml
77
94
  - .rvmrc
78
95
  - CHANGES
79
96
  - Gemfile
@@ -82,10 +99,17 @@ files:
82
99
  - README.md
83
100
  - Rakefile
84
101
  - lib/selenium_dsl.rb
85
- - lib/selenium_dsl/dsl.rb
102
+ - lib/selenium_dsl/capybara/dsl.rb
103
+ - lib/selenium_dsl/capybara/script.rb
86
104
  - lib/selenium_dsl/proxy.rb
87
- - lib/selenium_dsl/script.rb
105
+ - lib/selenium_dsl/selenium_client/dsl.rb
106
+ - lib/selenium_dsl/selenium_client/script.rb
107
+ - lib/selenium_dsl/selenium_helper.rb
108
+ - lib/selenium_dsl/selenium_webdriver/dsl.rb
109
+ - lib/selenium_dsl/selenium_webdriver/script.rb
88
110
  - lib/selenium_dsl/version.rb
111
+ - lib/selenium_dsl/watir_webdriver/dsl.rb
112
+ - lib/selenium_dsl/watir_webdriver/script.rb
89
113
  - selenium_dsl.gemspec
90
114
  - selenium_dsl.gemspec.erb
91
115
  - spec/access_wikipedia_spec.rb
@@ -104,7 +128,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
104
128
  version: '0'
105
129
  segments:
106
130
  - 0
107
- hash: -3260942171541288313
131
+ hash: -2763678583655684477
108
132
  required_rubygems_version: !ruby/object:Gem::Requirement
109
133
  none: false
110
134
  requirements:
@@ -1,31 +0,0 @@
1
- require "selenium/client"
2
- require 'selenium_dsl/proxy'
3
-
4
- module SeleniumDSL
5
- module DSL
6
- def init_selenium(host, port, browser, url, timeout_in_seconds)
7
- @selenium_driver = Selenium::Client::Driver.new \
8
- :host => host,
9
- :port => port,
10
- :browser => browser,
11
- :url => url,
12
- :timeout_in_seconds => timeout_in_seconds
13
-
14
- @script = Script.new @selenium_driver, timeout_in_seconds
15
- end
16
-
17
- def start_new_session
18
- @selenium_driver.start_new_browser_session
19
- end
20
-
21
- def close_session
22
- @selenium_driver.close_current_browser_session
23
- end
24
-
25
- def selenium(&block)
26
- @script.instance_eval(&block)
27
-
28
- @script
29
- end
30
- end
31
- end