Andrew wrote:
> I am new to Watir and need to select an item in a dropdown box.
> This dropdown is a table and located in a body, written in javascript.
> I tried regular $ie.select_list( :name , "search_clientid").select("qaone"), 
> but it doesn't work. 
> Please help!
>
> <body>
> <script type="text/javascript" src="/js/include.js" ></script>
> <script type="text/javascript" src="/js/admin.js"></script>
>
> <table class="table_box" cellpadding="0" cellspacing="0" width="200">
> <tr class="bar">
>       <td nowrap>CLIENTS <a href="/it/crm/clients.cfm">-all</a></td>
>       <td align="right"><a 
> href="/it/crm/modules/add_mod_modules.cfm?action=remove&module=sm_quick_add_project"><img
>  src="/images/delete.gif" border="0"></a></td>
> </tr>
> <tr>
>       <td colspan="2">
>               <select style="width:200px" name="search_clientid" 
> onChange="document.location=this.options[this.selectedIndex].value;">
>                       <option value="0">choose client
>                       
>                                                       <option 
> value="client_setup_view.cfm?clientid=117">aavacations</option>
>                       
>                               <option 
> value="client_setup_view.cfm?clientid=1">advertiser</option>
>   

Andrew,

When requesting help, please tell us what happens, not just "it doesn't 
work". Do you get an error message? What is it? Does it select the wrong 
item?

In any case, i don't see an option called "qaone" in the html. Which 
item are you trying to select?

Bret
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to