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

Using x11docker like an automation tool #542

Open
borishuseincehajic opened this issue Oct 9, 2024 · 1 comment
Open

Using x11docker like an automation tool #542

borishuseincehajic opened this issue Oct 9, 2024 · 1 comment

Comments

@borishuseincehajic
Copy link

Hi,
I'm interested to know if I could use this docker to:

  1. Spin it up
  2. Auto run chrome with a written script to do the following:
    a) Go to a specific page
    b) Login to page
    c) Get some details (I can add simple node server to listen to specific route when requested and pick up the response)
    d) Send those details from docker to my local machine

I would use probably xdotool with combination of anything additional required to make it happen.

The reason of using this instead of automation tool like playwright, selenium etc. is mostly because in most cases you will fail because of the anti-bot service. I would use it on my own account technically which is still not possible with playwright but I would like to automate some stuff with it and make my life easier. Let me know the possibilities with this one.

@kuandai
Copy link

kuandai commented Nov 22, 2024

I'm no expert so take my word with a grain of salt, but I believe what you are describing would be much easier with Xvfb, and using xdotool with that instead. Since Xvfb is headless, it could probably run in a regular docker container, too.

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

No branches or pull requests

2 participants