selenium-server 1.1.2 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/example.rb +0 -2
- data/lib/selenium-server/selenium-server.rb +3 -2
- data/selenium-server.gemspec +1 -1
- metadata +1 -1
data/Gemfile.lock
CHANGED
data/example.rb
CHANGED
@@ -9,7 +9,7 @@ module SeleniumServer
|
|
9
9
|
@configuration = Configuration.new
|
10
10
|
end
|
11
11
|
|
12
|
-
attr_reader :server
|
12
|
+
attr_reader :server, :driver
|
13
13
|
|
14
14
|
def localhost?
|
15
15
|
case @configuration.host
|
@@ -23,10 +23,11 @@ module SeleniumServer
|
|
23
23
|
@server = Server.new(@configuration)
|
24
24
|
server.start
|
25
25
|
end
|
26
|
-
Runner.new(@configuration).driver
|
26
|
+
@driver = Runner.new(@configuration).driver
|
27
27
|
end
|
28
28
|
|
29
29
|
def finish
|
30
|
+
driver.quit
|
30
31
|
if localhost? then server.stop end
|
31
32
|
end
|
32
33
|
|
data/selenium-server.gemspec
CHANGED