Hi,
I too have the similar problem with the split button and unable to click on 
the button. Find the below html source code and suggest me to proceed 
further.

<div id = "SearchButton">
   <table class="buttonMainTable" border="0" cellspacing="0" 
cellpadding="0">
     <tbody>
       <tr>
         <td class="buttonTDLeft">
         <td class="buttonTdMiddle" noWrap="nowrap">
               <input title="" class=SearchInputBox" id="Work_ID2" 
style="color: black;" onkeypress="searchWork(event);" 
onfocus="if(this.getAttribute('flag')
                <span class="yui-button yui-split-button" 
id="PEGA_SPLITBTNpyAdvFindOpt">
                   <span class="first-child">
                      <button tabIndex="0" title="Menu collapsed. Press 
Down Arrow to show the menu." type="button" PN=".pyAdvFindOpt"/>
          <td class="buttonTdRight">

Please refer the attachments (html source.png, split button.png, drop 
down.png) for more reference.




On Thursday, April 26, 2012 12:25:31 AM UTC+5:30, mndude wrote:
>
> I have a "split button" that when clicked in the middle or left side will 
> perform a default action on that page.  But if clicked on the right side it 
> will drop down a menu to select from a set of actions.  I can't get Watir 
> webdriver to click and drop down the menu.  It only is able to click and 
> perform the default action in the page.
>
> There is a similar item at 
> http://dev.sencha.com/deploy/ext-4.1.0-gpl/examples/kitchensink/index.html#basic-toolbar
>   
> Try the Menu Button drop down
>
> The html of my button is somewhat similar to the link above and I'm having 
> the same problem getting Watir webdriver to click on the right side and 
> drop down the menu:
>
> <td class="x-btn-mc">
>     <em id="ext-gen49" class="x-btn-split" unselectable="on" 
> style="background-color: transparent;">
>         <button id="ext-gen22" class=" x-btn-text" 
> type="button">Add</button>
>     </em>
> </td>
>
>
> Is there a way to get Watir webdriver to click somewhere besides the 
> middle of an object?  I wonder if I could click a few pixels to the right 
> of center if the menu would appear.  
>

-- 
-- 
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]

--- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to