FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

htmlunit not supported · Issue #11 · php-webdriver/php-webdriver · GitHub

htmlunit not supported #11

Description

If I try to use htmlunit as a headless browser here is what I get:
PHP Fatal error: Uncaught exception 'UnhandledWebDriverError' ...

The relevant lines of code are:
$browser = 'htmlunit';
$webdriver = 'http://127.0.0.1:4444/wd/hub';
$driver = new WebDriver($webdriver);
$sess = self::$driver->session($browser);

The selenium server outputs this:
16:48:18.362 INFO - Executing: [new session: {browserName=htmlunit}] at URL: /session)
16:48:18.364 WARN - Exception thrown
java.util.concurrent.ExecutionException: org.openqa.selenium.WebDriverException: java.lang.reflect.InvocationTargetException
Build info: version: '2.14.0', revision: '14955', time: '2011-11-29 11:42:43'
System info: os.name: 'Linux', os.arch: 'amd64', os.version: '2.6.18-238.12.1.el5', java.version: '1.6.0_26'
Driver info: driver.version: unknown

However, this should work, as these guys http://code.google.com/p/php-webdriver-bindings/ managed to find a solution.
Regards.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


    Back | FazBrowse Home | New Git URL