On Tue, Oct 18, 2011 at 12:14 PM, Naveen <[email protected]> wrote: > Relevant HTML is as follows and when i try the click its not showing any errors but dropdown window is not opening
I would suggest that you read a bit about HTML. You are trying to click a LINK inside DIV element: $ff.div(:id,"NetworkAnalysisTabPanel").div(:index,1).div(:index,1).ul(:index,1).li(:index,1).link(:index,2).click And you really want to click a select list, only it is not select list (SELECT tag), but unordered list (UL and LI tags): <ul id="ext-gen105" class="x-tab-strip x-tab-strip-top"> <li id="NetworkAnalysisTabPanel__ext-comp-1038" class=" x-tab-strip-menuable x-tab-strip-active "> <a class="x-tab-strip-close" onclick="return false;"></a> <a id="ext-gen794" class="x-tab-strip-menu" onclick="return false;"></a> If you wand to click the first link in above HTML try this: browser.link(:class => "x-tab-strip-close").click If you want to click the second link try: browser.link(:id => "ext-gen794").click Željko -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. [email protected] http://groups.google.com/group/watir-general [email protected]
