Hi,

 

I am using Webtest 3.0 and I get the following exception in some java
script file.

 

Caused by: java.lang.RuntimeException: Cannot set URL: javascript:

        at
com.gargoylesoftware.htmlunit.WebRequest.buildUrlWithNewFile(WebRequest.
java:180)

        at
com.gargoylesoftware.htmlunit.WebRequest.setUrl(WebRequest.java:113)

        at
com.gargoylesoftware.htmlunit.WebRequest.<init>(WebRequest.java:69)

        at
com.gargoylesoftware.htmlunit.html.BaseFrame.loadInnerPageIfPossible(Bas
eFrame.java:138)

        at
com.gargoylesoftware.htmlunit.html.BaseFrame.setAttributeNS(BaseFrame.ja
va:322)

        at
com.gargoylesoftware.htmlunit.html.DomElement.setAttribute(DomElement.ja
va:319)

        at
com.gargoylesoftware.htmlunit.javascript.host.html.HTMLElement.jsxFuncti
on_setAttribute(HTMLElement

.java:526)

        at
com.gargoylesoftware.htmlunit.javascript.host.html.HTMLDocument.jsxFunct
ion_createElement(HTMLDocum

ent.java:943)

Caused by: java.net.MalformedURLException: unknown protocol: javascript

        at java.net.URL.<init>(URL.java:395)

        at java.net.URL.<init>(URL.java:283)

        at
com.gargoylesoftware.htmlunit.WebRequest.buildUrlWithNewFile(WebRequest.
java:177)

 

I thought javascript is not enabled in my browser and hence the error.
But, I checked my browser and saw that Javascript is enabled.

 

Any pointers would be helpful as I am unable to proceed further.

 

Regards,

Radhika Bhatkhande Senior Developer

Shared Services | Sensis IT

150 Lonsdale St., Melbourne 3000 Australia

Phone: (03) 8653 7310

Mobile: 0459 802 812

Sensis. Helping you find, buy and sell.

www.sensis.com.au - www.yellow.com.au - www.whitepages.com.au -
www.citysearch.com.au - www.whereis.com.au

Sensis cares for the environment - think before you print.

This email and any attachments are intended only for the use of the
recipient and may be confidential and/or legally privileged. Sensis Pty
Ltd disclaims liability for any errors, omissions, viruses, loss and/or
damage arising from using, opening or transmitting this email. If you
are not the intended recipient you must not use, interfere with,
disclose, copy or retain this email and you should notify the sender
immediately by return email or by contacting Sensis Pty Ltd by telephone
on [+61 3 8653 5000]
        

Reply via email to