Skip to content

Chrome driver 2.8/2.9 fails to run if coverage enabled #295

@spencer-aerian

Description

@spencer-aerian

I'm using selenium standalone 2.39 or 2.4 with Chromedriver 2.8 or 2.9 and Chrome 33 on ubuntu-64bit.
The selenium system works ok if I run the python web driver so I've narrowed it down to this extension.

If I have coverage enabled in the phpunit.xml file or on the command line, the chrome browser fails to run properly with the error

Failed to set the 'cookie' property on 'Document': Cookies are disabled inside 'data:' URLs.

The browser starts with data:; as the start URL, but then crashes out without changing the URL.

I've notionally pinned this down to around line 289 of Selenium2TestCase.php where a session cookie is set, and the driver is failing at this point.

Whilst its not completely necessary for my requirements to have coverage for selenium tests, as part of a larger suite its a PITA.

I'm not sure how you'd go about modifying the code. Perhaps an edge case check for Chrome in prepareSession()?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions