microsoft / playwright

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
https://playwright.dev
Apache License 2.0
64.29k stars 3.49k forks source link

[Question] Can I type anything in the address bar? #15126

Closed hkfsc closed 2 years ago

hkfsc commented 2 years ago

Hi, I know I can use goto method with playwright to visit specific URL, but currently I want to type something in address bar then I can get some suggestions with the text I typed, then choose the website I want to visit, is this possible or not?

rwoll commented 2 years ago

The address bar itself (e.g. the Omnibox in CR) is out of scope of Playwright. It's not possible to get the auto-suggestions of the address bar in Playwright. Can you elaborate more on your use case?