question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

extensions: Ability to click browser action buttons

See original GitHub issue

We are relying on puppeteer to automate testing of our extension. I can automate most things except I cannot click the button that our extension adds to the browser’s toolbar.

Could there be an API to interact with browser action buttons?

Something to the tune of

let actionButtons = await browser.actionButtons();
await actionButtons[0].click();

would be great.

This will allow us to fully automate testing of our extension workflow. Thanks!

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:253
  • Comments:22 (5 by maintainers)

github_iconTop GitHub Comments

180reactions
mcpine9commented, May 13, 2018

High Demand Here! High Demand!

24reactions
jorgerosalcommented, Jun 19, 2018

High demand.

Read more comments on GitHub >

github_iconTop Results From Across the Web

browser_action - Mozilla - MDN Web Docs
A browser action is a button that your extension adds to the browser's toolbar. The button has an icon, and may optionally have...
Read more >
chrome.browserAction - Chrome Developers
If a browser action has a popup, the popup appears when the user clicks the extension's icon. The popup can contain any HTML...
Read more >
Browser extensions: page action or browser action?
But if your action is not specific to a website but to all the websites then you use browserAction s which appear on...
Read more >
Detect a button click in the browser_action form of a Google ...
Clicking extension button with browser window opened to exampley.com ... won't be able to see any console.log in your main Chrome window.
Read more >
Browser extensions - Popup page modifications - Daily Dev Tips
Modifying the active tab through a browser popup extension. ... but what if we want that action to only happen when we click...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found