selenium-client 1.2.6 → 1.2.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -35,7 +35,7 @@ module Selenium
35
35
  end
36
36
 
37
37
  def close_current_browser_session
38
- remote_control_command "testComplete"
38
+ remote_control_command "testComplete" if @session_id
39
39
  @session_id = nil
40
40
  end
41
41
 
@@ -9,14 +9,14 @@ module Selenium
9
9
  # See http://davidvollbracht.com/2008/6/4/30-days-of-tech-day-3-waitforajax for
10
10
  # more background.
11
11
  def wait_for_ajax(timeout_in_seconds=nil)
12
- selenium.wait_for_condition "selenium.browserbot.getCurrentWindow().Ajax.activeRequestCount == 0", timeout_in_seconds
12
+ wait_for_condition "selenium.browserbot.getCurrentWindow().Ajax.activeRequestCount == 0", timeout_in_seconds
13
13
  end
14
14
 
15
15
  # Wait for all Prototype effects to be processed (the wait in happenning browser side).
16
16
  #
17
17
  # Credits to http://github.com/brynary/webrat/tree/master
18
18
  def wait_for_effects(timeout_in_seconds=nil)
19
- selenium.wait_for_condition "window.Effect.Queue.size() == 0", timeout_in_seconds
19
+ wait_for_condition "window.Effect.Queue.size() == 0", timeout_in_seconds
20
20
  end
21
21
 
22
22
  # Wait for an element to be present (the wait in happenning browser side).
@@ -330,7 +330,8 @@ module Selenium
330
330
  # 'optionsString' is options for the cookie. Currently supported options include 'path', 'domain' and 'recurse.' The optionsString's format is "path=/path/, domain=.foo.com, recurse=true". The order of options are irrelevant. Note that specifying a domain that isn't a subset of the current domain will usually fail.
331
331
  def delete_cookie(name, options="")
332
332
  if options.kind_of? Hash
333
- options = options.keys.collect {|key| "#{key}=#{options[key]}" }.join(", ")
333
+ ordered_keys = options.keys.sort {|a,b| a.to_s <=> b.to_s }
334
+ options = ordered_keys.collect {|key| "#{key}=#{options[key]}" }.join(", ")
334
335
  end
335
336
  remote_control_command "deleteCookie", [name,options,]
336
337
  end
@@ -41,7 +41,7 @@ module Selenium
41
41
  super
42
42
  end
43
43
 
44
- def example_pending(example, message)
44
+ def example_pending(example, message, pending_caller)
45
45
  include_example_group_description example
46
46
  super
47
47
  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.6
4
+ version: 1.2.7
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-10-13 00:00:00 -02:00
12
+ date: 2008-10-22 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
 
@@ -72,7 +72,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
72
72
  requirements: []
73
73
 
74
74
  rubyforge_project: selenium-client
75
- rubygems_version: 1.2.0
75
+ rubygems_version: 1.3.0
76
76
  signing_key:
77
77
  specification_version: 2
78
78
  summary: Official Ruby Client for Selenium RC.