selenium-client 1.2.8 → 1.2.9
Sign up to get free protection for your applications and to get access to all the features.
- data/README.markdown +7 -7
- data/lib/selenium/rspec/rspec_extensions.rb +2 -2
- metadata +2 -2
data/README.markdown
CHANGED
@@ -69,8 +69,8 @@ Plain API
|
|
69
69
|
#
|
70
70
|
# Sample Ruby script using the Selenium client API
|
71
71
|
#
|
72
|
-
require "test/unit"
|
73
72
|
require "rubygems"
|
73
|
+
gem "selenium-client", ">=1.2.9"
|
74
74
|
require "selenium/client"
|
75
75
|
|
76
76
|
begin
|
@@ -96,8 +96,8 @@ Writing Tests
|
|
96
96
|
#
|
97
97
|
require "test/unit"
|
98
98
|
require "rubygems"
|
99
|
-
gem "selenium-client"
|
100
|
-
require "selenium"
|
99
|
+
gem "selenium-client", ">=1.2.9"
|
100
|
+
require "selenium/client"
|
101
101
|
|
102
102
|
class ExampleTest < Test::Unit::TestCase
|
103
103
|
attr_reader :browser
|
@@ -127,9 +127,9 @@ Writing Tests
|
|
127
127
|
If BDD is more your style, here is how you can achieve the same thing using RSpec:
|
128
128
|
|
129
129
|
require 'rubygems'
|
130
|
-
|
131
|
-
gem "selenium-client"
|
132
|
-
require "selenium"
|
130
|
+
gem "rspec", "=1.1.11"
|
131
|
+
gem "selenium-client", ">=1.2.9"
|
132
|
+
require "selenium/client"
|
133
133
|
require "selenium/rspec/spec_helper"
|
134
134
|
|
135
135
|
describe "Google Search" do
|
@@ -145,7 +145,7 @@ Writing Tests
|
|
145
145
|
end
|
146
146
|
|
147
147
|
# The system capture need to happen BEFORE closing the Selenium session
|
148
|
-
|
148
|
+
append_after(:each) do
|
149
149
|
@selenium_driver.close_current_browser_session
|
150
150
|
end
|
151
151
|
|
@@ -25,13 +25,13 @@ module Spec
|
|
25
25
|
@execution_error = nil
|
26
26
|
Timeout.timeout(options.timeout) do
|
27
27
|
begin
|
28
|
-
|
28
|
+
before_each_example
|
29
29
|
eval_block
|
30
30
|
rescue Exception => e
|
31
31
|
@execution_error ||= e
|
32
32
|
end
|
33
33
|
begin
|
34
|
-
|
34
|
+
after_each_example
|
35
35
|
rescue Exception => e
|
36
36
|
@execution_error ||= e
|
37
37
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: selenium-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- OpenQA
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-
|
12
|
+
date: 2008-11-04 00:00:00 -08:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|