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

Make browsing with Selenium Browser Agnostic #1566

Closed

Conversation

sadmuphin
Copy link
Contributor

Background

In it's current implementation selenium browsing only works with Chrome. And nothing else. This is exclusionary to other users who don't want to or don't have chrome installed.

Additionally I would like to make some changes to allow the user to choose to use the old web-scraping functions.

Changes

Added support for 2 more browsers: firefoxand safari. Note that safari doesn't have a driver manager and there's some additional setup the user needs to do to get it working. See this article.

It might be smart to automate the setup (it seems to be a single shell command), so if someone could input if I should do that, that'd be greatly appreciated.

Documentation

Test Plan

Set USE_WEB_BROWSER=firefox in my .env and asked autogpt to summarize a website for me. Selenium opened firefox with no problems, and continued as normal. I have NOT been able to test Safari as I'm not on MacOS.

PR Quality Checklist

  • My pull request is atomic and focuses on a single change.
  • I have thoroughly tested my changes with multiple different prompts.
  • I have considered potential risks and mitigations for my changes.
  • I have documented my changes clearly and comprehensively.
  • I have not snuck in any "extra" small tweaks changes

@nponeccop
Copy link
Contributor

@cryptidv Can you merge the conflicts and fix CI/linting?

@sadmuphin
Copy link
Contributor Author

Closing in favor of #1572

@sadmuphin sadmuphin closed this Apr 15, 2023
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.

2 participants