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

Fix up geckodriver #44

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Fix up geckodriver #44

wants to merge 3 commits into from

Conversation

xendk
Copy link

@xendk xendk commented Nov 22, 2023

Trying out marionette for a project, I ran into some problems with geckodriver.

First off, it would just hang rather than exit. Tracked that down to a sleep 1000.

That cut the waiting down to 30 seconds. Apparently geckodriver doesn't support the shutdown command (mozilla/geckodriver#771 (comment)), so rather than waiting for it, skip directly to sending it signals.

And fix the build badge.

Doesn't solve all my problems though, seems that geckodriver spawns three other geckodriver processes when it's launched, which doesn't get killed when marionette closes it down, so I'm left with extra processes.

Experimenting a bit, I found out that killing the process group would take care of the extra geckodriver processes, but has the nasty sideeffect of also killing the Crystal process (as the geckodrivers are just added to its process group). Fixing that would involve making a special launcher for geckodriver that changes the process group before launching geckodriver, but that's a bit involved, so I can live with calling killall geckodriver for the time being.

It doesn't support it and waiting thirty seconds for it to not obey
the command is a waste of time.
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

Successfully merging this pull request may close these issues.

1 participant