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

Minimal safari driver logging #601

Merged
merged 3 commits into from
Jul 28, 2024
Merged

Conversation

lread
Copy link
Collaborator

@lread lread commented Jul 9, 2024

Safaridriver logging is relatively odd. It only has debug level logging, only logs to a file, and discovering that file is somewhat tricky.

This change adds minimal support to discover and dump safaridriver logs.

I'm not sure how many folks bother with safaridriver testing, so this change might be mostly a favour to myself when diagnosing safaridriver issues that arise from time to time.

Closes #563
Incidentally fixes #517

Please complete and include the following checklist:

  • I have read CONTRIBUTING and the Etaoin Developer Guide.

  • This PR corresponds to an issue that the Etaoin maintainers have agreed to address.

  • This PR contains test(s) to protect against future regressions

  • I have updated CHANGELOG.adoc with a description of the addressed issue.

Safaridriver logging is relatively odd. It only has debug level logging,
only logs to a file, and discovering that file is somewhat tricky.

This change adds minimal support to discover and dump safaridriver logs.

I'm not sure how many folks bother with safaridriver testing, so this
change might be mostly a favour to myself when diagnosing safaridriver
issues that arise from time to time.

Closes #563
Incidentally fixes #517
@lread
Copy link
Collaborator Author

lread commented Jul 9, 2024

Ah. Yes. Windows.

lread added 2 commits July 27, 2024 18:12
…ridriver-logs

* origin/master:
  Ignore emacs backup files (#609)
  Add :fn/index as alias for :index in map syntax (#603) (#608)
  doc: thank Dave Roberts for contribution [skip ci] (#607)
  Add support for shadow DOM #604 (#606)
  doc: user-guide: add list of :fn/* (#605)
My initial approach to logging termination of our fake-driver was to
have it listen for SIGTERM. This works on macOS/Linux but Windows has
no facility to listen for termination signals. So instead, we hook into
`:post-stop-fns` for something that works for all OSes.
@lread lread merged commit 1cff731 into master Jul 28, 2024
53 checks passed
@lread lread deleted the lread-discover-safaridriver-logs branch July 28, 2024 18:13
lread added a commit to dgr/etaoin that referenced this pull request Aug 13, 2024
* master:
  Move to w3c WebDriver spec (clj-commons#616)
  minor breaking: Remove support for PhantomJS (clj-commons#614)
  ci: publish: Move to release tag triggered publishing (clj-commons#611)
  docs: review & update changelog (clj-commons#610)
  Minimal safari driver logging (clj-commons#601)
  Ignore emacs backup files (clj-commons#609)
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.

Add Support for Safaridriver Debug Logs Process cleanup while starting webdriver process
1 participant