Codeception / module-phpbrowser

PhpBrowser module for Codeception
MIT License
60 stars 14 forks source link

Allow PhpBrowser to open local files #11

Open sasha-x opened 8 years ago

sasha-x commented 8 years ago

If I am trying:

$uri = 'file://some_local.html';
$I->amOnPage($uri);

I see:

[GuzzleHttp\Exception\RequestException] cURL error 1: Protocol "file" not supported or disabled in libcurl (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)

I think it is about CURLOPT_PROTOCOLS and CURLOPT_REDIR_PROTOCOLS values. But when I am trying to hardcode it to CURLPROTO_ALL I see:

[GuzzleHttp\Exception\RequestException] cURL error 0: The cURL request was retried 3 times and did not succeed. The most likely reason for the failure is that cURL was unable to rewind the body of the request and subsequent retries resulted in the same error. Turn on the debug option to see what went wrong. See https://bugs.php.net/bug.php?id=47204 for more information. (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)