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

Introduce Browser::is_available() to fix #46 #47

Merged
merged 1 commit into from Apr 27, 2022
Merged

Conversation

amodm
Copy link
Owner

@amodm amodm commented Apr 27, 2022

Introduced the following methods to check for validity of browser, if required, without opening a url:

  • Browser::is_available()
  • Browser::<name>::exists()

Browser::is_available() just calls Browser::Default::exists(), which then invokes an open_browser_with_options() call using BrowserOptions::new().with_dry_run(), which is a new option being introduced with this commit.

Fixes #46.

@amodm amodm merged commit a487a1c into master Apr 27, 2022
@amodm amodm deleted the issue-46-is-available branch April 27, 2022 07:41
@jrnxf
Copy link

jrnxf commented Apr 27, 2022

@amodm appreciate the quick updated! Seems to be working great on my end 👍🏼

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.

detect if browser is available without opening a url
2 participants