-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
browser closed automatically while running python playwright script. even we cannot launch single page #16290
Comments
Virtualenv System |
/tests/ui_test$ uname -a |
Error:
|
Could you provide us your docker-compose_linux.yml and Dockerfile which you are using? So your host OS is macOS 12.4, could you confirm that? Are you using an intel mac or arm/m1 mac? |
yes it is : |
Could you provide us your docker-compose and Dockerfile? |
we cannot share actually we work for client project |
Could you try it with the official Docker image instead? https://playwright.dev/docs/docker Also if you are not using it, you need to manually install dependencies: https://playwright.dev/docs/cli#install-browsers
|
dev@ccs-dev: |
can i pass headless parameter from the command line. currently iam using this command: poetry run pytest testcases/sample.py --browser chromium |
|
Seems like this issue is mixing a lot of different requests - what are you trying to accomplish / what is not working? Because its hard to follow. I see that you are using bionic, which is also very old and gets deprecated soon, could you try using focal or jammy and the official Docker image? There is no need to install the dependencies there: https://playwright.dev/python/docs/docker |
Per-above closing as part of triage. We'd love to be more useful here, but there are currently too many unknown factors for us to do more than guess. Please try to reproduce your issue with minimal code that you can share with us using the official Docker images (https://playwright.dev/python/docs/docker). A repro will help ensure we are actually debugging the same issue you are facing and will minimize us guessing. This is especially helpful when there are several layers/pieces involved. Ideally the repro is a GitHub repository we can clone, download, and run to see the issue ourselves. It should include the commands to run it, too. Thanks! |
Context:
docker-compose -f docker-compose_linux.yml up --detach ccs-dev ccs-pg ccs-redis ccs-kafka
docker-compose exec -u dev ccs-dev bash -l
Code Snippet
Note: tried with both headed and headless . tried with PWDEBUG=""
The text was updated successfully, but these errors were encountered: