Hello again!

It's strange, but setCheckbox sometimes doesn't work for our application (see checkbox with ID user[role_ids][])
neither <setCheckbox name="user[role_ids][]" value="1" />
nor
<setCheckbox xpath="//[EMAIL PROTECTED]'[user[role_ids][]'" value="1" />
nor
<clickElement xpath="//[EMAIL PROTECTED]'user[role_ids][]'and @value='1']" />

Confusing for me, but for another checkbox (ID = user_disabled) all works. Seems that problem is in HTML code. But I can't see it.

Regards
Andrew.

Html code:

<form action="/admin/user/update/24" method="post">
 <div class="app_form">
 <fieldset class="editUser">
   <legend>Enter User Details</legend>
...

     <label for="user_roles">Roles:</label>
       <table id="user_roles">
<tr>
                 <td>
<input class="check" id="user[role_ids][]" name="user[role_ids][]" type="checkbox" value="1" />
                 </td>
                 <td>
                     admin
                 </td>
             </tr>
<tr>
                 <td>
<input class="check" id="user[role_ids][]" name="user[role_ids][]" type="checkbox" value="2" />
                 </td>
                 <td>
                     expense_claim_supervisor
                 </td>
             </tr>
<tr>
                 <td>
<input class="check" id="user[role_ids][]" name="user[role_ids][]" type="checkbox" value="3" />
                 </td>
                 <td>
                     finance
                 </td>
             </tr>
</table> <label for="user_disabled">Status:</label>
      <table id="user_status">
             <tr>
<td> <input checked="checked" class="check" id="user_disabled" name="user[disabled]" type="checkbox" value="1" /><input name="user[disabled]" type="hidden" value="0" /> </td>
                 <td>
                     Disabled
                 </td>
             </tr>
       </table>
 ....

 </fieldset>
</div>
<input class="button formBottomButton" name="commit" type="submit" value="Save" />
</form>
begin:vcard
fn:Andrew Sickorsky
n:Sickorsky;Andrew
org:texunatech
adr;dom:;;Magistralnaya street, 5 - 33;Moscow
email;internet:[EMAIL PROTECTED]
title:Tester
tel;work:+7 495 9809067
tel;cell:+7 909 9070328
x-mozilla-html:TRUE
url:www.texunatech.com
version:2.1
end:vcard

Reply via email to