|
Hi
I am using
Web test Build: R_1366
My HTML Source Looks Something
like
<td><a href="" ><img src="" name="Image3" border="0" id="Image3"></a></td> <td><a href=""
><img
src="" name="Image4"
border="0" id="Image4"></a></td>
Now From Xpath Explorer I get the xpath for these elements
as
//table/tbody/tr/td[4]/a //table//tbody/tr/td[2]/table//tbody/tr/td[6]/a
Respectively
I use clickElement with xpath as both mentioned
above
I get the Correct Page in case where xpath is
"//table//tbody/tr/td[2]/table//tbody/tr/td[6]/a"
but get Script Error with xpath as
"//table/tbody/tr/td[4]/a"
Script error loading page executing webtest at: clickElement
Wrapped com.gargoylesoftware.htmlunit.ScriptException:
TypeError:
validate is not a function, it is null.
(event for HtmlBody[<body ms_positioning="GridLayout"
leftmargin="0" topmargin="0"
>]#1)
(Embedded script in http://beta.zarca.com/zSM/edit_properties.aspx?survey_no=17#115)
Source code: function () { [native code, arity=0] } , Step:
ClickElement at C:\build\bin\betaSMProperty.xml:32: with
(resultFilename="response_1155797320543_clickElement.html",
taskName="clickElement", xpath="//table/tbody/tr/td[4]/a")
Please Let me know what can be done if I want to Proceeed Furthur as I am getting Script Error on many other ClickEvents on the site we are testing .. Please Let me know How To Proceed with Testing ...
|
- [Webtest] Script Error With Canoo Web Test Prasanna
- Re: [Webtest] Script Error With Canoo Web Test Marc Guillemot
- Re: [Webtest] Script Error With Canoo Web Test PrasannaRH
- Re: [Webtest] Script Error With Canoo Web Test Marc Guillemot

