IceArmy
0a25130e57
Implement require('webpage').
...
window.WebPage still works, it is not recommended and will be deprecated.
http://code.google.com/p/phantomjs/issues/detail?id=47
2011-09-09 01:05:23 -07:00
IceArmy
dab9b24983
Regenerate resources
2011-09-08 15:53:20 -07:00
IceArmy
ad390acd96
Implement require('fs')
...
http://code.google.com/p/phantomjs/issues/detail?id=47
2011-09-08 15:24:50 -07:00
IceArmy
5821a60db1
Rename option/config to localToRemoteUrlAccess(Enabled).
2011-09-07 20:52:22 -07:00
IceArmy
de2dc7b861
Stop unsafe QByteArray conversions using str()
2011-09-07 05:00:26 -07:00
IceArmy
8a2b9e77df
Include ChangeLog in build_binary
2011-09-06 22:47:07 -07:00
IceArmy
70fe7a4777
Don't check for multiple examples paths in build_binary anymore
2011-09-06 22:46:56 -07:00
IceArmy
bd67351ab0
Fix import of version in build_binary
2011-09-06 22:40:33 -07:00
IceArmy
2448157c04
Config to limit the disk cache size
2011-09-06 19:32:10 -07:00
IceArmy
8d754a3e95
Remove fs.move; it's already implemented in filesystem-shim
2011-09-04 22:43:24 -07:00
IceArmy
c3262dcb9b
Regenerate resources
2011-09-04 22:08:00 -07:00
IceArmy
bb1a6fa838
Implement copyTree in filesystem-shim
2011-09-04 22:07:17 -07:00
IceArmy
a323161a56
Add HTTP Basic authentication support
...
Digest, and NTLM might also be supported, but is untested
2011-09-04 03:23:58 -07:00
IceArmy
aaabac948c
Regenerate resources
2011-09-04 02:51:26 -07:00
IceArmy
b5899f9064
Added ability to use JSON config files to set command-line arguments
2011-09-04 02:46:19 -07:00
IceArmy
d4fe103a66
Whoops! self.parent != self.m_parent
2011-09-04 00:04:12 -07:00
IceArmy
f786a4b864
Regenerate resources
2011-09-03 23:52:57 -07:00
IceArmy
5f69a34a4f
Add execjosh to webpage-shim copyrights
2011-09-03 23:52:36 -07:00
IceArmy
189db2f520
Remove unneeded fs.umask
2011-09-03 23:44:42 -07:00
IceArmy
1f90c8b9f3
Regenerate resources
2011-09-03 22:58:33 -07:00
IceArmy
cb216ccc6f
Update FS API
...
Put shims into separate js files
All tests now pass again as well
2011-09-03 22:57:01 -07:00
IceArmy
1f7cb51780
Convert all Qt api's to api 2
2011-09-01 16:04:23 -07:00
IceArmy
dcc5b5d595
Stop printing README in setup.py, and rather, if they don't have it, warn user to install PyQt4.
2011-09-01 13:13:40 -07:00
IceArmy
106240aa3f
Fix bug 8 where setup.py would pull in a file that needed PyQt4, even though it's not required; so it caused setup to fail for people.
...
Also simplified how the version system now works.
2011-09-01 13:04:28 -07:00
IceArmy
cf4b459d01
Fix bug where we'd get strings that were converted incorrectly: "PyQt4.QtCore.QUrl(u'foo')"
2011-08-31 22:38:41 -07:00
IceArmy
fb25ec7cd0
Simplify --cookies usage and description
2011-08-31 18:15:17 -07:00
IceArmy
ff51c695b5
Clean up Encode
2011-08-31 17:46:18 -07:00
IceArmy
87a580f36a
Add output-encoding and script-encoding options
2011-08-31 15:43:29 -07:00
IceArmy
3e8493973c
Regenerate resources
2011-08-31 11:43:53 -07:00
IceArmy
b1ba0ee118
Update bootstrap.js
...
Added copyrights
Allow for passing options to WebPage constructor
2011-08-31 11:43:15 -07:00
IceArmy
84f53357f4
Differentiate between _private and builtin_
2011-08-24 17:02:34 -07:00
IceArmy
1b73d5c310
Add phantom.outputEncoding
2011-08-24 16:39:58 -07:00
IceArmy
33466c87c3
Fix bug where SafeStreamFilter couldn't decode utf-8
2011-08-24 15:40:29 -07:00
IceArmy
5e069ee711
Misc improvements
...
Changed all if not's/if's for None's to if value is None/if value is not None
Fix bug in fs where split never used os.altsep because if not always evaluated to False since there's almost always something in the list returned
Fix the fixme on fs.isAbsolute where we needed to split the Windows drive letter off
2011-08-24 14:32:29 -07:00
IceArmy
e6a644e3da
Improve the Singleton implementation of CSConverter
2011-08-23 16:19:58 -07:00
IceArmy
3d8d7342ab
Rename self.parent to self.m_parent
2011-08-23 12:18:41 -07:00
IceArmy
9c464bca13
Regenerate resources
2011-08-23 12:18:41 -07:00
IceArmy
fa285e0aca
page.release() now works without JS shim.
2011-08-23 12:18:25 -07:00
IceArmy
3b263a9ebb
Regenerate resources
2011-08-23 01:43:43 -07:00
IceArmy
2a909173f8
Update bootstrap
2011-08-23 01:43:43 -07:00
IceArmy
5bee668c2f
Make CSConverter instance part of CSConverter class
2011-08-21 14:51:05 -07:00
IceArmy
f70f63e554
Regenerate resources
2011-08-21 14:22:13 -07:00
IceArmy
35950cade5
Update to lastest bootstrap
2011-08-21 14:21:46 -07:00
IceArmy
fb93d49a7f
Rename page.destroy() to page.release()
2011-08-21 14:12:15 -07:00
IceArmy
3caac5a5a3
Rename "XSSAuditing" to "XSSAuditingEnabled"
2011-08-21 14:08:14 -07:00
IceArmy
572f660c94
Regenerate resources
2011-08-20 18:51:42 -07:00
IceArmy
9057287171
Add callback for page initialization. #143
2011-08-20 18:50:56 -07:00
Ariya Hidayat
e79a51bdd8
Merge pull request #129 from Roejames12/QWebSettings
...
New page settings
2011-08-20 17:17:36 -07:00
IceArmy
8880edcf78
Remove settings: jsOpenWindows, jsAccessClipboard, siteSpecificQuirksMode
...
Renamed jsEnabled to javascriptEnabled
2011-08-20 16:49:36 -07:00
IceArmy
faa0a06258
Plugin controllers get() method should never fail silently
2011-08-19 16:42:31 -07:00
IceArmy
7418a84e60
Added functions to WebPage class to simulate mouse move, mouse up, and mouse down. Also added click() convenience function, which combines a move, mousedown, and mouseup.
2011-08-19 16:32:14 -07:00
IceArmy
9e4830d44c
Move pdf_dpi to better location
2011-08-19 16:32:14 -07:00
IceArmy
33005c3957
Add a few new QWebSettings for page settings.
...
Among the most useful, is the jsEnabled setting, which allows you to disable JavaScript.
2011-08-19 15:47:34 -07:00
IceArmy
80ed81a3f9
Regenerate resources
2011-08-19 00:08:02 -07:00
IceArmy
0159c0ed27
Use updated FS api
...
Fix bug where File.m_file didn't exist in __del__() if we used File.close() first
fs.removeTree now removes tree as well as all tree contents (files). This is for a functionality sync between PhantomJS and PyPhantomJS
All tests will now pass successfully
2011-08-19 00:07:24 -07:00
IceArmy
7cbd75a400
Make the parents the first argument (since we will always supply the arg, and also for cleanliness and order)
2011-08-18 14:23:58 -07:00
IceArmy
d70ca4bf7c
Updated the network access manager to use a proxied reply so the response bodies can be captured.
2011-08-18 14:09:21 -07:00
IceArmy
3c91c581bb
Use new style class for MessageHandler
2011-08-15 13:37:37 -07:00
IceArmy
414660b41a
Replace escaped quotes in strings
2011-08-15 11:56:39 -07:00
IceArmy
548e063231
Regenerate resources
2011-08-08 15:13:48 -07:00
IceArmy
862dc6e017
Update CoffeeScript to 1.1.2
2011-08-08 15:12:57 -07:00
IceArmy
12d36a195a
Don't require \ at the end of multiline imports
2011-08-01 19:13:19 -07:00
IceArmy
6154876a42
Replace all single quoted strings with escaped single quotes inside with a double quoted string to avoid needing to escape the single quotes
2011-08-01 19:10:04 -07:00
IceArmy
7fe267341a
Pass app back to Phantom
2011-07-31 03:05:06 -07:00
IceArmy
9d66ddf5ad
Simplify cookies file check
2011-07-31 03:05:06 -07:00
IceArmy
8a9c95d872
Simplify cookiejar code
2011-07-29 05:59:52 -07:00
IceArmy
4ffd835cb3
Persistent cookie support
2011-07-29 03:55:52 -07:00
IceArmy
c9ad2c35a7
Correctly handle KeyError/ValueError exceptions on scrollPosition setter
2011-07-29 02:12:12 -07:00
IceArmy
56939bc153
Simplify clipRect code
2011-07-29 02:11:55 -07:00
IceArmy
4440397ef4
Remove useless .keys() method call in for loops
2011-07-29 01:59:50 -07:00
IceArmy
df5ac1d9c3
Rename m_webPage.scrollPosition to m_webPage.m_scrollPosition
...
Fix bug where m_scrollPosition is undefined if you read scrollPosition from JS without first setting it
2011-07-29 01:56:37 -07:00
IceArmy
403572b633
Stop using globals() on scrollPosition()
2011-07-29 01:52:53 -07:00
Kapil Reddy
7641e4e1a4
Renamed pageScroll to scrollPosition
2011-07-11 12:17:40 +05:30
Kapil Reddy
983518d913
Added pageScroll property to webPage for javascript and changed renderImage code to render webpage considering scroll
2011-07-08 14:29:10 +05:30
IceArmy
0d513a4d0b
Regenerate resources
2011-07-04 11:07:23 -07:00
IceArmy
d1c418ba07
Allow constructs such as: page.open(url, operation)
2011-07-04 11:06:34 -07:00
IceArmy
b7fb218473
Improve plugin system
...
Thanks to frame hacks, we can get rid of passing/modifying locals()
- Passing bunched locals() is no longer needed on the hook points
- You can access the parent namespace with get() instead
- You can change stuff in the parent namespace with set()
2011-07-04 02:48:10 -07:00
Roejames12
75dc3705b9
Remove redundant 'install' section in setup.py
2011-07-04 00:25:35 -07:00
Roejames12
8cfdb0619a
Improved README and INSTALL files
2011-07-04 00:22:25 -07:00
IceArmy
78c984d6bf
Stop messing with the global namespace on clipRect and viewportSize
2011-07-03 23:16:51 -07:00
IceArmy
f83d706f80
Made a custom console script for PyPi since the autogenerated one failed.
2011-07-03 01:36:48 -07:00
IceArmy
00f21213b8
Add homepage URL and license information
2011-07-03 00:07:01 -07:00
IceArmy
97966e8fe8
Remove unneeded del statement.
2011-07-02 17:33:18 -07:00
IceArmy
d12202f0a6
More efficient handling of exit() deletion of pages
2011-07-02 17:26:06 -07:00
IceArmy
5218ab7e76
Delete page references on exit()
2011-07-02 17:10:28 -07:00
IceArmy
11ff154145
Regenerate resources
2011-07-02 17:10:28 -07:00
IceArmy
895923603f
Fix memory issues by providing a way to truly delete WebPages. #154
...
Use page.destroy() to delete the page and regain the memory.
2011-07-02 17:08:06 -07:00
IceArmy
edf6bc1d98
Remove unneeded is checks
2011-07-01 12:16:07 -07:00
IceArmy
d829a2ddc3
Add link versions of fs API
2011-06-30 01:14:29 -07:00
IceArmy
bd44efa3f3
Fix fs.changePermissions to not reset file permissions then add changed ones on
...
It now only changes what you specify to change, correctly.
2011-06-29 23:12:55 -07:00
IceArmy
a0a79e4ddc
Make fs.join() able to take unlimited paths as per spec.
...
This however now requires us to pass an array.
E.g. fs.join(['pathA', 'pathB', 'pathC'])
2011-06-29 21:58:18 -07:00
IceArmy
8f79f29659
Add umask, newline, changeGroup, changeOwner, changePermissions, group, owner, permissions
2011-06-29 21:58:18 -07:00
IceArmy
7f67808544
Add hook points to filesystem.py
2011-06-29 05:38:10 -07:00
IceArmy
90eb114cde
Add support for TONS of methods defined in CommonJS specs
2011-06-29 05:12:22 -07:00
IceArmy
fc81a1e258
Regenerate resources
2011-06-29 02:19:58 -07:00
IceArmy
da987ed034
Introducing File I/O API in PyPhantomJS.
...
* Inspired by HammerJS (see https://github.com/senchalabs/hammerjs )
* Not yet 100% complete
* Final aim is to provide a CommonJS/Filesystem compliant API (see http://wiki.commonjs.org/wiki/Filesystem )
2011-06-29 02:19:08 -07:00
IceArmy
bd775fd429
Improve error reporting for injectJsInFrame()
...
Also changed warnings to debugs
2011-06-29 02:14:50 -07:00
IceArmy
a2aed0064c
Fix crash on exit (Issues #136 , #148 and #149 )
2011-06-28 18:41:29 -07:00
IceArmy
67702dbc46
Bump version.
2011-06-26 18:39:03 -07:00
IceArmy
8621e9e4d5
Regenerated resources
2011-06-26 18:28:12 -07:00