poltergeist 1.18.0 → 1.18.1
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.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '0832563d66cb058b873a787ca7337761932f3aab8b7c8269f26e60a362bf98f9'
|
4
|
+
data.tar.gz: 5ce500b0b2b502ac73e4aa14171af96813a2d7e4ae5c020d215c3e15cc9eeaec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 98f7fa89f4718f099ddfdd96f3a0b2eb9db0bce236421c92be88dfd83a05d3e8394f60df11601d28f9447beeea75d0dd859fe13276e07952ca3723869c110f30
|
7
|
+
data.tar.gz: 592bfbdc77932d4cacebc9d5869709eb87596ba815ebf0f9b22f4b51990a1c78790a18192876f5af54370b060e2da768a267ca5b9ff74eece860d73f54dd582f
|
data/README.md
CHANGED
@@ -9,7 +9,7 @@ provided by [PhantomJS](http://phantomjs.org/).
|
|
9
9
|
**If you're viewing this at https://github.com/teampoltergeist/poltergeist,
|
10
10
|
you're reading the documentation for the master branch.
|
11
11
|
[View documentation for the latest release
|
12
|
-
(1.18.
|
12
|
+
(1.18.1).](https://github.com/teampoltergeist/poltergeist/tree/v1.18.1)**
|
13
13
|
|
14
14
|
## Getting help ##
|
15
15
|
|
@@ -392,12 +392,12 @@ Poltergeist.WebPage = (function() {
|
|
392
392
|
};
|
393
393
|
|
394
394
|
WebPage.prototype.currentUrl = function() {
|
395
|
-
return this["native"]().url;
|
395
|
+
return this["native"]().url || this.runCommand('frameUrl');
|
396
396
|
};
|
397
397
|
|
398
398
|
WebPage.prototype.frameUrl = function() {
|
399
399
|
if (phantom.version.major > 2 || (phantom.version.major === 2 && phantom.version.minor >= 1)) {
|
400
|
-
return this["native"]().frameUrl;
|
400
|
+
return this["native"]().frameUrl || this.runCommand('frameUrl');
|
401
401
|
} else {
|
402
402
|
return this.runCommand('frameUrl');
|
403
403
|
}
|
@@ -236,11 +236,13 @@ class Poltergeist.WebPage
|
|
236
236
|
this.native().frameTitle
|
237
237
|
|
238
238
|
currentUrl: ->
|
239
|
-
|
239
|
+
# native url doesn't return anything when about:blank
|
240
|
+
# in that case get the frame url which will be main window
|
241
|
+
@native().url || @runCommand('frameUrl')
|
240
242
|
|
241
243
|
frameUrl: ->
|
242
244
|
if phantom.version.major > 2 || (phantom.version.major == 2 && phantom.version.minor >= 1)
|
243
|
-
@native().frameUrl
|
245
|
+
@native().frameUrl || @runCommand('frameUrl')
|
244
246
|
else
|
245
247
|
@runCommand('frameUrl')
|
246
248
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: poltergeist
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.18.
|
4
|
+
version: 1.18.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jon Leighton
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-05-
|
11
|
+
date: 2018-05-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capybara
|