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 #1572

Merged
merged 1 commit into from
Apr 15, 2023

Conversation

sadmuphin
Copy link
Contributor

@sadmuphin sadmuphin commented Apr 15, 2023

Continuation from #1566 since massive nuke merge #1537

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: Firefox and 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.

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

@richbeales richbeales merged commit 7c07892 into Significant-Gravitas:master Apr 15, 2023
@sadmuphin sadmuphin deleted the browser-agnostic branch April 15, 2023 17:54
@p-i-
Copy link
Contributor

p-i- commented Apr 15, 2023

@cryptidv Are you on Discord? Can you ping me pi#8377

@sadmuphin
Copy link
Contributor Author

@p-i- Yes I'm Cryptid#6686

@nponeccop nponeccop mentioned this pull request Apr 15, 2023
1 task
sindlinger pushed a commit to Orgsindlinger/Auto-GPT-WebUI that referenced this pull request Sep 25, 2024
…nostic

 Make browsing with Selenium Browser Agnostic
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.

4 participants