Skip to content
tobiasz.cudnik edited this page Feb 26, 2010 · 12 revisions
  1. labels Featured,Phase-Implementation,Plugin
  • WebBrowser* is a phpQuery plugin that mimics behaviors of web browser. Thanks to that developer can simulate user's behavior inside a PHP script.

Table of Contents

Supported

 * Link navigation (click event)
 * Form navigation (submit event)
 * Cookies (thought [http://framework.zend.com/manual/en/zend.http.cookies.html Zend_Http_CookieJar])
 * Relative links
 * document.location (not an object, yet)

Use cases

 * Fill forms and submit them easly
 * Login to secure pages and collect content
 * Write test cases reproducing browsing proccess

Example 1

Adding web browser functionality to existing phpQuery object and submiting the form.

Example 2

Querying Google against "search phrase":

Clone this wiki locally