Vitaliy Slobodin
5eb0f64e6b
Fix window.location.
...
Description:
Web Page can't navigate to a relative url using the property 'window.location'.
Upstream bug:
https://bugs.webkit.org/show_bug.cgi?id=47978
Issues:
http://code.google.com/p/phantomjs/issues/detail?id=632
http://code.google.com/p/phantomjs/issues/detail?id=530
2012-12-12 17:03:37 +04:00
James M. Greene
31dd714a22
Added getters for the WebPage#onError and phantom.onError properties
...
Fixes http://code.google.com/p/phantomjs/issues/detail?id=910
2012-12-11 21:57:25 -08:00
Jon Leighton
487fbf3035
Enable multiple files to be uploaded to a file input
...
Obviously, the input must have the multiple attribute for this to work.
The API is:
page.uploadFile('#file_input', ['file1', file2'])
I haven't implemented support for multiple files in the page.filePicker
API because I couldn't work out how to get a return value of an array
of strings through the JS/C++ bridge.
https://code.google.com/p/phantomjs/issues/detail?id=256
2012-12-11 21:41:02 -08:00
James M. Greene
e8380e42d7
Added CoffeeScript examples where missing, minor other fixes
...
Added CoffeeScript examples where missing, minor other fixes such as spacing standardization (2 spaces is the standard in CoffeeScript via Ruby). Also a small set of minor JS example fixes and additional comments.
Fixes http://code.google.com/p/phantomjs/issues/detail?id=907
2012-12-06 14:29:37 -06:00
James M. Greene
4c285c419d
Removed an invalid spec file and an invalid spec include.
...
Fixes http://code.google.com/p/phantomjs/issues/detail?id=906
2012-12-06 08:27:55 -08:00
James M. Greene
f61635f2d4
Adding 'WebPage#close' calls where appropriate in example scripts.
...
Fixes http://code.google.com/p/phantomjs/issues/detail?id=903
2012-12-06 08:27:06 -08:00
James M. Greene
c9f9b5a14b
Added getters for all of the WebPage signal//callback handlers.
...
Fixes http://code.google.com/p/phantomjs/issues/detail?id=899
2012-12-05 23:43:50 -06:00
Ariya Hidayat
a777797942
Stub for 1.8 changes.
...
http://code.google.com/p/phantomjs/issues/detail?id=863
2012-12-04 08:41:40 -08:00
Jan Schaumann
94e1f40ad9
Add a spec file to allow creation of an rpm from the (previously built) binary.
...
http://code.google.com/p/phantomjs/issues/detail?id=897
2012-11-30 22:31:50 -08:00
Milian Wolff
fd653fe61f
Properly use bottom margin to calculate the footer height.
...
http://code.google.com/p/phantomjs/issues/detail?id=894
2012-11-29 13:42:18 +01:00
Ivan De Marino
4caa71a6b7
Importing latest GhostDriver, tag "1.0.0".
...
http://code.google.com/p/phantomjs/issues/detail?id=49
2012-11-27 08:00:45 -08:00
Ivan De Marino
ffa9fab316
Embedding GhostDriver into PhantomJS(!!!)
...
Finally. After so much work, this is finally a reality.
To launch PhantomJS in "Remote WebDriver mode":
```bash
$ phantomjs --webdriver=OPTIONAL_IP:OPTIONAL_PORT
```
Also, GhostDriver brings along support for Selenium Grid: now PhantomJS can register itself to a Selenium Grid HUB.
Just launch it in Webdriver Mode with the following extra options:
```bash
$ phantomjs --webdriver=OPTIONAL_IP:OPTIONAL_PORT --webdriver-selenium-grid-hub=http://url.to.selenium.grid.hub:port
```
http://code.google.com/p/phantomjs/issues/detail?id=49
2012-11-27 07:58:34 -08:00
Ivan De Marino
2dcccc8968
First import of `ghostdriver.qrc` & related files.
...
http://code.google.com/p/phantomjs/issues/detail?id=49
2012-11-27 07:58:13 -08:00
Vitaliy Slobodin
63dd36205f
Don't perform on-demand loading of root certificates on Linux
...
Description:
Qt is performing loading on-demand of root certificates on Linux, which causing SSL errors.
Issue:
http://code.google.com/p/phantomjs/issues/detail?id=882
2012-11-24 16:41:03 +04:00
Milian Wolff
2d778f687e
Repeat thead and tfoot when table contains page breaks.
...
This was already done in https://github.com/ariya/phantomjs/pull/211
but somehow got lost when the Qt source tree was imported.
Note that I even improved this patch a bit to also properly repaint
the borders of cells in thead/tfoot.
http://code.google.com/p/phantomjs/issues/detail?id=615
2012-11-22 15:39:07 +01:00
Milian Wolff
5c87852c32
Prevent page breaks in table rows.
...
This was part of a previous PhantomJS release but got reverted
when the Qt source tree was imported. See the old pull request
here: https://github.com/ariya/phantomjs/pull/211
http://code.google.com/p/phantomjs/issues/detail?id=880
2012-11-22 15:38:58 +01:00
Ivan De Marino
9ba13ba989
Implementing "goBack", "goForward" and "go".
...
Completing work for [Issue #808 ](http://code.google.com/p/phantomjs/issues/detail?id=808 ).
2012-11-18 16:11:25 -08:00
Vitaliy Slobodin
40a14b72b1
Restore dirty line logic in RenderInline::destroy.
...
WebKit upstream fix: http://trac.webkit.org/changeset/86060
WebKit upsteam bug: https://bugs.webkit.org/show_bug.cgi?id=60448
Related issues:
http://code.google.com/p/phantomjs/issues/detail?id=704
http://code.google.com/p/phantomjs/issues/detail?id=703
http://code.google.com/p/phantomjs/issues/detail?id=675
http://code.google.com/p/phantomjs/issues/detail?id=689
http://code.google.com/p/phantomjs/issues/detail?id=532
http://code.google.com/p/phantomjs/issues/detail?id=851
2012-11-14 11:28:58 -08:00
Ariya Hidayat
559afcd4e8
Bump the version.
...
http://code.google.com/p/phantomjs/issues/detail?id=863
2012-11-10 01:45:54 -08:00
Ariya Hidayat
59dbd77ef5
Ask for a confirmation before initiating the build.
...
Although it is mentioned in http://phantomjs.org/build.html , many people
are not aware this, they compile from source (even if a binary package
is available) and get shocked to realize the build takes ages.
The build script is thus modified to give the initial warning.
Unattended build is still possible, just use --confirm flag.
http://code.google.com/p/phantomjs/issues/detail?id=862
2012-11-10 00:11:14 -08:00
Ariya Hidayat
7b84e43a10
Merge remote-tracking branch 'JamesMGreene/ExposeProcessId'
2012-11-08 06:24:32 -08:00
James M. Greene
280305797e
Exposing the Process ID (PID) via the System module.
...
`require('system').pid` should return your PhantomJS instance's Process ID.
http://code.google.com/p/phantomjs/issues/detail?id=769
2012-11-06 11:49:55 -06:00
Ivan De Marino
eadb03a978
Adding "page.onFilePicker" callback.
...
This addresses [Issue #843 ](http://code.google.com/p/phantomjs/issues/detail?id=843 ).
Important: this doesn't change the ability to use
"page.uploadFile", that will keep working as expected.
2012-11-03 18:41:18 +00:00
Ivan De Marino
1fa9c04845
Reworking code related to Issue #800 .
...
This addresses [Issue #842 ](http://code.google.com/p/phantomjs/issues/detail?id=842 ).
2012-11-03 14:38:23 +00:00
Ivan De Marino
7c7d1f961c
Adding "date" detection to `detectType`
...
Addresses [Issue #800 ](http://code.google.com/p/phantomjs/issues/detail?id=800 )
2012-11-03 14:38:22 +00:00
Ivan De Marino
4c5e96d17f
FIX: Multiple "onCallback" handlers registered.
...
Addresses [Issue #807 ](http://code.google.com/p/phantomjs/issues/detail?id=807 )
2012-11-03 14:38:22 +00:00
Ivan De Marino
b113993314
MINOR: Avoid frame switching if already there.
...
Useless to change frame if it's already the right one.
Makes it clearer what is going on when debugging.
2012-11-03 14:38:22 +00:00
Ivan De Marino
3fe308bf8c
Adding Navigation methods.
...
Addresses [Issue #808 ](http://code.google.com/p/phantomjs/issues/detail?id=808 )
* back() [method]
* canGoBack [property - boolean]
* forward() [method]
* canGoForward [property - boolean]
* reload() [method]
* stop() [method]
This is to fill a small gap we ought to deal with.
IMPORTANT: this API is asynchronous. Events
like "onLoadStarted" and "onLoadFinished" are
ideal to monitor the activity of those methods.
2012-11-03 14:38:22 +00:00
Ivan De Marino
9cf6cbe818
MINOR: Fixing typo - "splice !== slice"
2012-11-03 14:38:21 +00:00
Ivan De Marino
d5eb657ecc
More Douglas Crockford remedials.
...
Addresses [Issue #800 ](http://code.google.com/p/phantomjs/issues/detail?id=800 )
2012-11-03 14:38:21 +00:00
Ivan De Marino
e31528adfe
"onLoadFinished" works regardless of "page.open"
...
Addresses [Issue #801 ](http://code.google.com/p/phantomjs/issues/detail?id=801 )
2012-11-03 14:38:21 +00:00
Ivan De Marino
60ced2ccb6
Provide "detectType" inspired by D. Crockford
...
Addresses [Issue #800 ](http://code.google.com/p/phantomjs/issues/detail?id=800 )
2012-11-03 14:38:21 +00:00
Ivan De Marino
3f874067f5
Add properties "page.title" and "page.frameTitle"
...
Addresses [Issue #799 ](http://code.google.com/p/phantomjs/issues/detail?id=799 )
2012-11-03 14:38:21 +00:00
Jim Evans
42bf8b36d8
Making webserver module read request bodies and write response bodies using UTF-8
2012-11-03 14:38:21 +00:00
Jim Evans
395af9cada
Correcting keycodes sent for lowercase characters
...
http://code.google.com/p/phantomjs/issues/detail?id=852
2012-11-02 20:41:57 -07:00
Jim Evans
c2df526110
Fixing sending of double-click events
...
http://code.google.com/p/phantomjs/issues/detail?id=848
2012-11-01 07:18:40 -07:00
Ivan De Marino
f2628b32fe
Fix compilation issue on Ubuntu.
...
Reported [here](https://github.com/ariya/phantomjs/commit/402a8d9753395edffb4811aa1834ff31a051e27#commitcomment-2079231 ).
Conversion from `NULL` to `QVariant()` doesn't work implicitly on Ubuntu.
http://code.google.com/p/phantomjs/issues/detail?id=835
2012-10-31 20:38:16 -07:00
Vitaliy Slobodin
f3d920908a
QSslConfiguration: SSLv3 should be the default value
...
http://code.google.com/p/phantomjs/issues/detail?id=174
2012-10-29 06:36:11 -07:00
Vitaliy Slobodin
b834f2a590
Allow to specify the SSL protocol for a requests.
...
http://code.google.com/p/phantomjs/issues/detail?id=174
2012-10-29 06:36:08 -07:00
Jim Evans
380c56e672
Adding test for sendEvent with modifier key
...
http://code.google.com/p/phantomjs/issues/detail?id=835
2012-10-28 20:58:51 -07:00
Jim Evans
f402a8d975
Implementing modifier keys in sendEvent()
...
http://code.google.com/p/phantomjs/issues/detail?id=835
2012-10-28 20:56:46 -07:00
Johan Sköld
b7ca845327
Gave page a maxAuthAttempts setting.
...
QtWebKit normally loops infinitely trying to authenticate when it receives a
401 code, preventing all callbacks (onLoadFinished, onResourceReceived, etc).
This commit changes it to only try a set amount of times before aborting.
https://code.google.com/p/phantomjs/issues/detail?id=826
2012-10-24 00:02:59 -07:00
Vitallium
35c1971595
Fix parsing dates in ISO8601 format.
...
Issues:
http://code.google.com/p/phantomjs/issues/detail?id=187
http://code.google.com/p/phantomjs/issues/detail?id=267
2012-10-24 00:00:58 -07:00
Ivan De Marino
e521dc16e7
Adding a simple example to help understand events.
...
Lots of discussions on the ML could be easily put
to rest if people could run something like this
and see the result.
It's not a real fix or improvement, just a "cute"
example and as such I didn't raise a "proper"
issue.
2012-10-16 21:50:53 -07:00
Ariya Hidayat
4f17d94afd
Update the link to the crash reporting guide.
...
http://code.google.com/p/phantomjs/issues/detail?id=576
2012-09-28 08:03:25 -07:00
Vitaliy Slobodin
2403c00e59
Added version info for Windows
...
http://code.google.com/p/phantomjs/issues/detail?id=797
2012-09-24 07:57:01 -07:00
Ariya Hidayat
8ba3c52d50
Stop potential crash by guarding the access to the page.
...
Based on the work from Shawn Krisman (krisman.shawn@gmail.com ).
http://code.google.com/p/phantomjs/issues/detail?id=719
2012-09-24 07:33:48 -07:00
Ariya Hidayat
63e06cbcbf
Revert breaking behavior in commit ecda224233
.
...
Keeping the page alive instead of destroying causes unexpected behavior
compared to version 1.6 and earlier. See the discussion:
https://groups.google.com/d/topic/phantomjs/C84fmd21LDk/ .
http://code.google.com/p/phantomjs/issues/detail?id=719
2012-09-24 07:31:27 -07:00
Ariya Hidayat
f29827f201
README: Clarify capture-able contents.
...
http://code.google.com/p/phantomjs/issues/detail?id=764
2012-09-23 22:37:17 -07:00
Ariya Hidayat
9a0f8d0e3a
Point to the new wiki.
...
http://code.google.com/p/phantomjs/issues/detail?id=764
2012-09-23 22:34:12 -07:00