Hi,
I have the following code:
<div id="maccontext" context="mailbox">
<table width="100%">
<tbody>
<tr>
<td class="tdiv macXstring" string="mailbox_settings"
colspan="2" help="1">Mailbox Settings</td>
</tr>
<tr>
<td>
<span class="macXstring" string="account_type"
help="1">Mailbox Type</span>
</td>
<td>
<select id="__delivery_main" class="macXfunc"
trigger="change" func="switch_delivery_main">
<option value="mailbox">Mailbox</option>
<option value="forward">Forward</option>
<option value="filter">Filter</option>
</select>
</td>
</tr>
<tr>
<td>
<span class="macXstring" string="domain"
help="1">Domain</span>
:
</td>
<td width="100%">
<input id="__domain" class="macXfunc" type="text"
altselect="domain mail workgroup user" trigger="change"
func="create_user_exists" maxlength="64" size="40">
<span> </span>
<span id="domain_not_exist" class="macerr"></span>
</td>
</tr>
<tr>
</tr>
<tr class="machidden" machidden="update mailbox filter forward"
style="display: none;">
</tr>
<tr class="machidden" machidden="create update mailbox filter"
style="display: table-row;">
<td>
</td>
<td>
<input id="_password" type="text" maxlength="300" size="40"
r="1">
<input class="macXfunc" type="checkbox"
label="test:passtoggle" func="passtoggle">
<span class="macXstring" string="passtoggle" help="1">Show
Password</span>
<button class="machidden macXfunc" func="validate_password"
machidden="update" style="display: none;">
</button>
</td>
</tr>
I need to check the check box if is enabled/disabled, and also I have to be
able to enable disable it.
With firewatir I was able to handle it that way: defShowPassword =
$browser.checkbox(:label => "test:passtoggle").checked?.to_s
But that doesn't work anymore in watir -webdriver.
Can one help me? What would be the xpath? or how can I identify that
element?
The checkbox is on the last td
<td>
<input id="_password" type="text" maxlength="300" size="40"
r="1">
<input class="macXfunc" type="checkbox"
label="test:passtoggle" func="passtoggle">
<span class="macXstring" string="passtoggle" help="1">Show
Password</span>
<button class="machidden macXfunc" func="validate_password"
machidden="update" style="display: none;">
</button>
</td>
Thanks a lot,
Cristina
--
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]