47 Commits

Author SHA1 Message Date
IceArmy d90fd949de Simplify process where auth username and password gets set 2011-09-23 00:16:55 -07:00
IceArmy 2e44f1abd6 Make HTTP authentication as page settings.
http://code.google.com/p/phantomjs/issues/detail?id=45
2011-09-18 04:35:40 -07:00
IceArmy 4b882c25bd Improve the API for mouse events.
It now looks like in this example:

  page.sendEvent('mousedown', 42, 217);

Other available events are 'mouseup', 'mousemove', and 'click'. They modelled
after the DOM events.

Unit tests are included.

http://code.google.com/p/phantomjs/issues/detail?id=234
2011-09-18 04:35:26 -07:00
IceArmy 3204616b30 Fix bug where separate NetworkAccessManager's were causing program to not exit 2011-09-17 22:24:11 -07:00
Ariya Hidayat df93935d52 about:blank also needs document.head.
This makes it similar to what a typical web browser does.

http://code.google.com/p/phantomjs/issues/detail?id=235
2011-09-16 07:14:38 -07:00
IceArmy fff0b73234 Alphebetize imports 2011-09-15 17:18:08 -07:00
IceArmy 04f5165714 Special handling for about:blank
http://code.google.com/p/phantomjs/issues/detail?id=235
2011-09-15 16:19:35 -07:00
IceArmy 0f6c59cc6e Every web page gets its own network access manager.
Network-related activites should not be shared between web page
instances. Otherwise, it is extremely confusing when there are two (or
more) web pages are active at the same time.

http://code.google.com/p/phantomjs/issues/detail?id=190
2011-09-15 16:13:57 -07:00
IceArmy 826ab347e4 Refactoring on the module implementation.
Also implemented a new QPyFile class which is a wrapper
over QFile, supporting context managers. It greatly
improves code readability and reusability.

http://code.google.com/p/phantomjs/issues/detail?id=47
2011-09-13 14:45:28 -07:00
IceArmy febf9a14f6 Use super() for all class initializers instead 2011-09-12 22:27:04 -07:00
IceArmy c7dafc8dcb Fix wrong viewport size due to commits 983518d9 and 7641e4e1.
http://code.google.com/p/phantomjs/issues/detail?id=217
2011-09-10 18:24:54 -07:00
IceArmy 5821a60db1 Rename option/config to localToRemoteUrlAccess(Enabled). 2011-09-07 20:52:22 -07:00
IceArmy d4fe103a66 Whoops! self.parent != self.m_parent 2011-09-04 00:04:12 -07:00
IceArmy 87a580f36a Add output-encoding and script-encoding options 2011-08-31 15:43: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 3d8d7342ab Rename self.parent to self.m_parent 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 3caac5a5a3 Rename "XSSAuditing" to "XSSAuditingEnabled" 2011-08-21 14:08:14 -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 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 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