Address bar automation

Aug 16, 2009 at 9:44 AM

Hello all,


Whats the way for automating address bar and toolbars,

I am using IE7 with XP

i am invoking ie and then i need to work with address bar and toolbar components, like search


so i am using:

Application application = Application.Launch("iexplore.exe");

            // Get the main and only window
           Window window = application.GetWindows()[0];

           //Here i am trying to identify the toolbar by it's ByAutomationId(this is edit box bellow address bar) but without success
           window.Get<Button>(SearchCriteria.ByAutomationId("Item 274")).Click();

So how it's possible???

Thanks in advance!