derekmd / laravel-dusk-firefox Goto Github PK
View Code? Open in Web Editor NEWAutomate running Laravel Dusk using Geckodriver for Mozilla Firefox
License: MIT License
Automate running Laravel Dusk using Geckodriver for Mozilla Firefox
License: MIT License
Hello, this is a request for this package to support laravel dusk 7.x
release notes ---> https://github.com/laravel/dusk/releases/tag/v7.0.0
The program 'firefox' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadValue (integer parameter out of range for operation)'.
(Details: serial 1063 error_code 2 request_code 53 (core protocol) minor_code 0)
Exiting due to channel error.
Tried to run command without establishing a connection
#0 vendor/php-webdriver/webdriver/lib/Remote/HttpCommandExecutor.php(371): Facebook\WebDriver\Exception\WebDriverException::throwException()
I did update geckodriver to 0.31
Solution for me was to downgrade firefox to 96.0.3
I work under ubuntu
Hello,
it's impossible to pass arguments to chrome driver function, without loosing dusk:chrome driver,
because it triggers the following message :
It looks like you must configure your application for Chromedriver.
Run "php artisan dusk:install-firefox --with-chrome" to install new scaffolding.
it's because of this function :
protected function hasChromedriverSetup()
{
return Str::contains($this->duskTestCaseContents(), 'startChromeDriver()');
}
which check for the string startChromeDriver()
it's possible to bypass the check by doing :
static::startChromeDriver(['--port=9515']);//startChromeDriver()
but it's not very clean
After the execution of: php artisan dusk:install-firefox
the following error is displayed:
Downloading Geckodriver binaries...
Failed to download https://api.github.com/repos/mozilla/geckodriver/releases/latest: cURL error 60: SSL certificate problem: unable to get local issuer certificate (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://api.github.com/repos/mozilla/geckodriver/releases/latest
The execution is then aborted.
I've got laradock container with Firefox installed
firefox --version
Mozilla Firefox 90.0
php artisan dusk:install-firefox
also ran with
Firefox scaffolding installed successfully.
Downloading Geckodriver binaries...
Geckodriver binary successfully installed for version v0.29.1.
however I'm getting
Error: Call to a member function setPreference() on null
from the following code
$capabilities->getCapability(FirefoxDriver::PROFILE)
->setPreference('devtools.console.stdout.content', true);
Been stuck the whole day today on this issue.
All my Pest/Dusk browser tests ran fine under Chrome,
however the FireFox tests where all failing with cURL TimeOut exception, 0 bytes received
.
Having Listening for PHP debug connections
enabled, while using the FireFox driver,
was the culprit behind this.
Since the work-around is as simple as toggling off the Listening for PHP debug connections
button in the PyCharm IDE,
I'd say that fixing this issue is low priority.
However, it would be nice to have it mentioned in the FAQ,
because this can save others a lot of hair-pulling / time ๐
I ran the following in my Laravel 6/PHP 7.3 project on Mac OS:
% php artisan dusk:install-firefox
Overwrite file /Users/jrquick/development/uabshp/r3/laravel/tests/DuskTestCase.php? (yes/no) [no]:
yes
Firefox scaffolding installed successfully.
Downloading Geckodriver binaries...
Geckodriver binary successfully installed for version v0.29.0.
% php artisan dusk:firefox-driver --all
x geckodriver
Unable to find executable in downloaded file /Users/jrquick/development/uabshp/r3/laravel/vendor/derekmd/laravel-dusk-firefox/src/Console/../../bin/geckodriver-v0.29.0-linux64.tar.gz
x geckodriver
Unable to find executable in downloaded file /Users/jrquick/development/uabshp/r3/laravel/vendor/derekmd/laravel-dusk-firefox/src/Console/../../bin/geckodriver-v0.29.0-macos.tar.gz
Seems to be missing linux and max geckodrivers
@derekmd thank you for this package
I'm finding I'm not able to install this package due to memory size exceeding:
PHP Fatal error: Allowed memory size of 1610612736 bytes exhausted (tried to allocate 4096 bytes) in phar:///usr/local/bin/composer/src/Composer/DependencyResolver/Solver.php on line 223
I'm running this inside Homestead... Any ideas?
Running php artisan dusk:firefox-driver
when on Mac with arm64 or x86_64 (intel) architecture.
Nothing happens, no error.
I'm getting:
Facebook\WebDriver\Exception\TimeoutException: Timeout loading page after 300000ms
in my slow work from home machine, but I already increased the timeout via ::create
:
return RemoteWebDriver::create(
$_ENV['DUSK_DRIVER_URL'] ?? 'http://localhost:4444',
$capabilities,
9000000, 9000000
);
Thanks for your work on this package. I switched to it since chrome has a bug where rendering timeouts occur.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.