Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I type into the chrome omnibox/address bar using selenium webdriver?

I want to use Selenium webdriver to type into the chrome omnibox (address bar) to check that an extension is being targeted. I know how to send keys using selenium, but not how to send them to the omnibox. I've been googling this for a while, but I'm not sure how to go about it. Does anyone have any ideas?

like image 844
user650309 Avatar asked Nov 05 '25 06:11

user650309


2 Answers

Turns out it's not possible to type into the omnibox as it is outside the scope of Selenium.

like image 66
user650309 Avatar answered Nov 08 '25 01:11

user650309


I'm not 100% positive but from my understanding of Selenium I would be surprised if you can do that, since Selenium is for automating the web and web elements etc. and what your trying to do is automate the browser application.

like image 42
Martin Mussmann Avatar answered Nov 08 '25 01:11

Martin Mussmann