[ http://webtest-community.canoo.com/jira/browse/WT-439?page=all ]
     
Marc Guillemot closed WT-439:
-----------------------------

    Resolution: Cannot Reproduce
     Assign To: Marc Guillemot

First note, that your usage of <label> is incorrect and won't work in all 
browsers.

I've tested your snippet with latest snapshot of HtmlUnit and could find the 
radio button without problem with //[EMAIL 
PROTECTED]'copyTable']/tbody/tr[1]/td[1]/label/input.

Please update to the latest WebTest build and pick an HtmlUnit snapshot if 
needed. If the problem persists, please reopen the issue and provide a complete 
html page.

> WebTest unable to select Radio Button using xPath
> -------------------------------------------------
>
>          Key: WT-439
>          URL: http://webtest-community.canoo.com/jira/browse/WT-439
>      Project: WebTest
>         Type: Bug

>     Versions: 2.6
>  Environment: Windows XP Pro
>     Reporter: Joseph Goolsby
>     Assignee: Marc Guillemot

>
> I'm currently trying to get WebTest to select a Radio button, however it 
> can't find it when I use the name attribute in the <selectRadioButton> call. 
> I have therefore moved to trying to get it to use the xPath of the radio 
> button, however that's also failing. The source code for where the Radio 
> button is located is:
> <table class="copyTable">
> <tbody id="root:_idJsp1:tbody_element">
> <tr>
> <td><label><input name="payOrder" value="0" type=
> "radio" /></label></td>
> <td>
> <table class="copyTableView">
> <tbody>
> <tr>
> <td class="td30"><strong>Date:</strong></td>
> <td>06/13/08</td>
> </tr>
> <tr>
> The Radio button's name is payOrder. The xPath I'm attempting to use is:
> xpath="//[EMAIL PROTECTED]'copyTable']/tbody/tr[1]/td[1]/label"
> The problem being that WebTest recognizes the xPath all the way up to here:
> xpath="//[EMAIL PROTECTED]'copyTable']/tbody/tr[1]/td[1]/"
> But once the /label is added WebTest returns a "No Node found" error, without 
> the /label WebTest can verify the xPath with no error.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://webtest-community.canoo.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest

Reply via email to