selenium-client 1.2.6 → 1.2.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.
data/lib/selenium/client/base.rb
CHANGED
@@ -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
|
-
|
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
|
-
|
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
|
-
|
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
|
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.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-
|
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.
|
75
|
+
rubygems_version: 1.3.0
|
76
76
|
signing_key:
|
77
77
|
specification_version: 2
|
78
78
|
summary: Official Ruby Client for Selenium RC.
|