akephalos2 2.0.8.1 → 2.0.9
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/akephalos/capybara.rb +1 -0
- data/lib/akephalos/client.rb +5 -5
- data/lib/akephalos/node.rb +2 -7
- data/lib/akephalos/version.rb +1 -1
- metadata +12 -12
data/lib/akephalos/capybara.rb
CHANGED
data/lib/akephalos/client.rb
CHANGED
@@ -89,11 +89,7 @@ else
|
|
89
89
|
# @param [String] url the URL to load
|
90
90
|
# @return [Page] the loaded page
|
91
91
|
def visit(url)
|
92
|
-
|
93
|
-
client.getPage(url)
|
94
|
-
rescue Exception => e
|
95
|
-
raise e unless e.message == 'java.lang.NullPointerException: null'
|
96
|
-
end
|
92
|
+
client.getPage(url)
|
97
93
|
page
|
98
94
|
end
|
99
95
|
|
@@ -175,6 +171,10 @@ else
|
|
175
171
|
yield if block_given?
|
176
172
|
return handler.text
|
177
173
|
end
|
174
|
+
|
175
|
+
def close_all_windows()
|
176
|
+
@client.closeAllWindows()
|
177
|
+
end
|
178
178
|
|
179
179
|
private
|
180
180
|
|
data/lib/akephalos/node.rb
CHANGED
@@ -164,13 +164,8 @@ module Akephalos
|
|
164
164
|
# Click the node and then wait for any triggered JavaScript callbacks to
|
165
165
|
# fire.
|
166
166
|
def click
|
167
|
-
|
168
|
-
|
169
|
-
@_node.getPage.getEnclosingWindow.getJobManager.waitForJobs(1000)
|
170
|
-
@_node.getPage.getEnclosingWindow.getJobManager.waitForJobsStartingBefore(1000)
|
171
|
-
rescue Exception => e
|
172
|
-
raise e unless e.message == 'java.lang.NullPointerException: null'
|
173
|
-
end
|
167
|
+
@_node.click
|
168
|
+
@_node.getPage.getWebClient.waitForBackgroundJavaScriptStartingBefore(3000)
|
174
169
|
end
|
175
170
|
|
176
171
|
# Search for child nodes which match the given XPath selector.
|
data/lib/akephalos/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: akephalos2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.9
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-10-
|
12
|
+
date: 2011-10-19 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: capybara
|
16
|
-
requirement: &
|
16
|
+
requirement: &70303145391620 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70303145391620
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: rake
|
27
|
-
requirement: &
|
27
|
+
requirement: &70303145390600 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70303145390600
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: jruby-jars
|
38
|
-
requirement: &
|
38
|
+
requirement: &70303145388080 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: '0'
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *70303145388080
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: sinatra
|
49
|
-
requirement: &
|
49
|
+
requirement: &70303145401440 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ! '>='
|
@@ -54,10 +54,10 @@ dependencies:
|
|
54
54
|
version: '0'
|
55
55
|
type: :development
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *70303145401440
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: rspec
|
60
|
-
requirement: &
|
60
|
+
requirement: &70303145398760 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ! '>='
|
@@ -65,7 +65,7 @@ dependencies:
|
|
65
65
|
version: '0'
|
66
66
|
type: :development
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *70303145398760
|
69
69
|
description: Headless Browser for Integration Testing with Capybara
|
70
70
|
email: bj.schaefer@gmail.com
|
71
71
|
executables:
|