Skip to content
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

Playwright automation guide #391

Open
subhasishdasfreelance opened this issue May 13, 2024 · 3 comments
Open

Playwright automation guide #391

subhasishdasfreelance opened this issue May 13, 2024 · 3 comments
Labels
question Further information is requested

Comments

@subhasishdasfreelance
Copy link

I added neko:chromium in a docker using the docker compose example found in your website. Also in the same container I have installed playwright.

My goal is to automate neko's chromium using playwright. So user can interact with the browser while also automate it.
I'm trying to do something like this with playwright

const browser = await playwright.chromium.connectOverCDP('http://localhost:9222');

However this needs remote debugging. I'm not seeing any option to turn on remote debugging in neko browser.

Can you please tell me what would be the recommended way to do it?

@sourav-sarkar-doc32
Copy link

I am also working with @imnocat with it. Our goal is to run automations in remote server, and let users interact and finish it if the automation gets stuck. We are planning to use some GPT based ai to automate it actually, and most likely it will get stuck and then user will remotely take action via neko's browser ui.

@m1k1o
Copy link
Owner

m1k1o commented Jun 17, 2024

You could just add --remote-debugging-port to the chrome and then automate it with playwright.

@m1k1o m1k1o added the question Further information is requested label Jun 17, 2024
@osamasaeed0
Copy link

You could just add --remote-debugging-port to the chrome and then automate it with playwright.

Sir can you help me with this problem what should I do now i am stuck nothing is working i have tried a lot of commands

npx playwright test locators.spec.js
npm error code ERR_INVALID_URL
npm error Invalid URL
npm error A complete log of this run can be found in: C:\Users\WikI\AppData\Local\npm-cache_logs\2024-07-18T14_12_05_094Z-debug-0.log

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants