Locate the present address bar in Google Chrome (Auto IT)

I am trying to Locate the address bar of the “Google Chrome”. Can anybody help me on how can I send a value not a URL on the present address bar? I have tried to fix this problem by having this code:

“Send ( “!dNike{ENTER}” )” or “Alt + D + value + Hit Enter”.

But what I really need is to Locate the present address bar of Google Chrome and give a value like “Nike” for example.

I need to do this because Selenium WebDriver is only capable on sending “URL”. I will really appreciate your help

Please see the attached picture for your reference

We can use Ctrl+L to edit the address bar in a browser.

driver.findElement(By.xpath("//body")).sendKeys(Keys.chord(Keys.CONTROL, "l"));

driver.findElement(By.xpath("//body")).sendKeys("NIKE",Keys.ENTER);

I have tested this above in firefox and this works.

Hope this helps. Thanks.

You should take the window name by using the finder tool. Here we go!

WinWaitActive("New Tab - Google Chrome")
Send("Hello motto")
Send("{ENTER}")