All,

Can anyone advice on how i can click these js script links? I get
java.net.MalformedURLException in the after i <clickElement XPath
="//*[contains(@src,'/images/dropdown.gif')]"/>. or link or <clickElement
XPath ="//*...@href='javascript:void(0)']" or (@name. See error below. Step
passes but webtest stays on the current page instead of advancing to the new
page. Could this be a result of htmlunit-2.4 not being able to handle the
js? When i click on the link myself, i don't see any errors on the browser
(IE).
Webtest 3.0, htmlunit-2.4.


        <tr class="cHeight25">
            <td id="requiredLabel">Client Job Title:</td>
            <td>

                    <input type="Text" name="txtJobTitle" value=""
maxlength="50" size="40">
                        <a href="javascript:ShowWizard('OTMPL')">
                        <img src="/images/dropdown.gif" name="dd01"
height="16" width="16" title="Pick a Job Title" border="0">
                        </a>

            </td>

Error snippet:
.
.
.
[clickElement] Caused by: java.net.MalformedURLException: no protocol:
/PSLookup/PSLookup.cfm?pLookupId=OTMPL&p01=0&p02=
56282&p03=76&p04=T
[clickElement]  at java.net.URL.<init>(URL.java:567)
[clickElement]  at java.net.URL.<init>(URL.java:464)
[clickElement]  at java.net.URL.<init>(URL.java:413)
[clickElement]  at
com.gargoylesoftware.htmlunit.javascript.host.Window.jsxFunction_showModalDialog(Window.java:1094)
[clickElement]  ... 88 more
[clickElement] Inside wrapped exception:
[clickElement] java.net.MalformedURLException: no protocol:
/PSLookup/PSLookup.cfm?pLookupId=OTMPL&p01=0&p02=56282&p03=7
6&p04=T

This is currently a road block for me, any help is greatly appreciated.
Thanks again
-- 
- Rhee

"Risk nothing and you gain nothing"

Reply via email to