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

Add keyword to install browser extensions to Selenium #341

Open
mikahanninen opened this issue Dec 16, 2021 · 1 comment
Open

Add keyword to install browser extensions to Selenium #341

mikahanninen opened this issue Dec 16, 2021 · 1 comment
Assignees
Labels
documentation Improvement/addition to documentation feature New functionality to add in consideration Might not get on the roadmap p-low Low priority partner Issue: Robocorp Partners

Comments

@mikahanninen
Copy link
Member

Related to this example Robot

Python example of the how Firefox extension can be installed

    @keyword
    def firefox_install_addon(self, path, temporary=None):
        # 'path' is absolute path to the addon that will be installed
        payload = {"path": path}
        if temporary:
            payload["temporary"] = temporary
        # The function returns an identifier of the installed addon.
        # This identifier can later be used to uninstall installed addon.
        return self.driver.execute("INSTALL_ADDON", payload)
@mikahanninen mikahanninen added the enhancement Improve an existing feature label Dec 16, 2021
@cmin764 cmin764 self-assigned this Aug 3, 2022
@cmin764
Copy link
Contributor

cmin764 commented Aug 3, 2022

Sounds good, I'm also thinking on enabling support for installing extensions given all combinations between: (Playwright, Selenium) X (Chrome, Firefox) so people can install them without extending the libraries or doing any hacks.

ToDo

  • Use Extension keyword (open to other naming) for the following:
    • Installing the addon with Selenium + Firefox (on Chrome you add it as an option)
    • Opening the browser with Playwright + Chrome/Firefox (adding as CLI param which extension you want to load)
  • Portal example showcasing how this works with a real extension in both Selenium & Playwright with Chrome/Firefox. (bot will be non-headless first and headless too if supported)
  • Improve Portal LastPass bot for Selenium case as well and check if Chrome still has trouble loading extensions in headless mode.
  • Spread the word in the community Slacks/forums related to this problem.

@cmin764 cmin764 added documentation Improvement/addition to documentation partner Issue: Robocorp Partners labels Aug 3, 2022
@cmin764 cmin764 assigned cmin764 and mikahanninen and unassigned cmin764 Aug 8, 2022
@cmin764 cmin764 added feature New functionality to add p-low Low priority and removed enhancement Improve an existing feature labels Apr 10, 2023
@tonnitommi tonnitommi added the in consideration Might not get on the roadmap label Apr 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvement/addition to documentation feature New functionality to add in consideration Might not get on the roadmap p-low Low priority partner Issue: Robocorp Partners
Projects
None yet
Development

No branches or pull requests

3 participants