Using Silk2006 and ie7 I'm having a problem using the built-in method for clicking the tools menu on the menu bar. When the menu bar is enabled in ie, there are 2 buttons labeled 'tools', one on the tab bar and one on the menu bar. So trying to click it gets "bushbutton tools is not unique".
Has anyone been able to call explorer.tools.pick(), explorer.tools.internetoptions.pick() or explorer.tools.click() successfully? Is there a setting to change to let Silk realize which toolbars/menu buttons are enabled for ie7 and thus handle the tag correctly? Does either of the tools menus have a different logical name for ie7?
I hope that using a dynamic window for the tools menu isn't going to be needed, since we want to use the built-in mehtods for doing things like explorer.clearcache().
I ran into a similar issue, because we need to make sure that the pop-up blocker is off, and cookie settings are correct. Our tests almost always run against a newly imaged machine with what amounts to a new install of IE, so it's in the "Configure me" state.
I have been playing with various solutions and have come up with the following, which works consistently across IE7 and IE6.
<font class="small">Code:</font><hr /><pre>
BROWSERTYPE bType = GetBrowserType ()
// This code will enable the Menu bar in IE7
if (bType == explorer7)
if (!Browser.PushButton("Tools").Exists ())
Explorer.TypeKeys ("<Down 7><Enter>")
Browser.TypeKeys ("<Right 4>")
WaitFor (IE_Options, 10)