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

[Feature]: Ability to type in the address bar #32754

Closed
mdmower opened this issue Sep 22, 2024 · 2 comments
Closed

[Feature]: Ability to type in the address bar #32754

mdmower opened this issue Sep 22, 2024 · 2 comments

Comments

@mdmower
Copy link

mdmower commented Sep 22, 2024

🚀 Feature Request

I would appreciate the ability to type into the address bar.

From #15126, I understand this is currently not possible and seems out of scope. The author of that issue never got back to the question about use case. This would help test implementations of the omnibox API in Edge, Chrome, and Firefox extensions.

Even if exposing suggest results is deemed out of scope, the ability to send keyword some text[enter], where keyword is the keyword that triggers an extension (defined in the manifest) and some text is the text to be handled by onInputEntered, would help extension developers test basic functionality.

Example

await browser.addressBar.type('doi 10.1000/182');
await browser.addressBar.press('Enter');

Motivation

This would enable more complete testing of extensions for Edge, Chrome, and Firefox. For example, in my doi-resolver project, there is currently no way to test omnibox API usage.

@yury-s
Copy link
Member

yury-s commented Sep 23, 2024

As Omnibox is not a part of the web platform, Playwright does not support it and we are not planning to work on it at the moment.

Support for firefox extensions is tracked in #7297

@yury-s yury-s closed this as completed Sep 23, 2024
@mdmower
Copy link
Author

mdmower commented Sep 23, 2024

@yury-s - for what it's worth, omnibox is included in w3c/webextensions interfaces: interfaces/chromium/chrome-common-extensions-api/omnibox.json. Playwright is one of the very few options extension developers have for testing extensions (the other being manual pairing of puppeteer with a testing framework like jest or mocha), so I hope the team will keep an open mind about supporting this neglected community.

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

No branches or pull requests

2 participants