1. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

Laravel dusk can't disable headless mode on laravel sail with wsl2

Discussão em 'Outras Linguagens' iniciado por Andy BnOne, Outubro 1, 2024 às 00:12.

  1. Andy BnOne

    Andy BnOne Guest

    i have a existing up to date laravel 11 project that's running under laravel sail with docker in windows 11 with wsl2 (ubuntu). i've installed and configured laravel dusk according to the official laravel docs the dusk test are running fine but i cant disable headless mode to open a browser window no matter what i try

    The first think i tried was to add DUSK_HEADLESS_DISABLED=true in my .env.dusk.local did not work.

    Next i commented out '--headless=new' in the driver method in DuskTestCase.php and did nothing

    The same with '--disable-gpu'

    Tried adding '--no-sandbox' suggested by chat GPT and guess what? it did nothing

    Next i fended a discussion on laracraft where someone suggested to change my selenium image in my docker-compose.yml to:

    image: 'selenium/standalone-chrome:4.1.2-20220217'


    that did not work either.

    tried sail down sail up --build -d.

    I'm stuck and any help with be greatly appreciated.

    Continue reading...

Compartilhe esta Página