Giter VIP home page Giter VIP logo

laravel-dusk-firefox's People

Contributors

derekmd avatar owenvoke avatar spresnac avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

laravel-dusk-firefox's Issues

Firefox 99 causes error

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

https://askubuntu.com/a/661193

removing --headless causes

image

Your firefox profile cannot be loaded. It may be missing or inaccessible.

as a result, firefox doesn't open, nor does the test run

any fixes to this you know of?

Impossible to pass arguments to startChromeDriver function

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

Please help in taking screenshot of full screen

Hello. Thanks for this module.

Screenshots are cut and not taking the whole page. Here's a sample screenshot of my app. You may see that it does not show the whole page.

failure-Modules_Enrollment_Tests_Browser_EnrollmentTest_testModifyEnrollmentStudentCanDropAndAdd-0

Thank you for your help.

Error: Call to a member function setPreference() on null

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);

PhpStorm/Xdebug - `Listening for PHP debug connections` causes cURL TimeOut exception

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 ๐Ÿ™‚

Geckodrivers Missing for Mac and Linux

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

Running out of memory when using Homestead

@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?

How to increase timeout?

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.