unable to launch page with https

4 views
Skip to first unread message

Jolly Kundu

unread,
Oct 1, 2007, 5:22:27 PM10/1/07
to selenium-users...@googlegroups.com
Hi,

I am totally new with Selenium. I was trying to launch https://login.yahoo.com in UNIX & it didn't work for me. Here are details:

browser: Firefox 2.0.0.3
Selenium RC: 0.9.2
java version: 1.5.0_11

I followed all steps described in {code:html}<http://forums.openqa.org/message.jspa?messageID=27136> - created a new profile, imported certificate, loaded proxy.pac. Then tried to launch the server with various options - -multiwindow, -proxyInjectionMode, -firefoxProfileTemplate. But nothing worked for me. When I am running test I see the following errors:

Error in browser:
======
The connection was reset
The connection to the server was reset while the page was loading.
======

Error in terminal:
======
16:30:18.673 INFO - Command request: getNewBrowserSession[*custom firefox -P selenium-custom-https, https://login.yahoo.com] on session null
16:30:18.710 INFO - Launching session 618683
16:30:32.093 INFO - Started SocketListener on 0.0.0.0:43215
16:30:32.434 WARN - null null null
java.lang.NoClassDefFoundError
at javax.crypto.Cipher.getInstance(DashoA12275)
at java.security.Signature$Delegate.newInstance(Signature.java:935)
at java.security.Signature$Delegate.chooseProvider(Signature.java:1035)
at java.security.Signature$Delegate.engineInitSign(Signature.java:1109)
at java.security.Signature.initSign(Signature.java:503)
at com.sun.net.ssl.internal.ssl.RSASignature.engineInitSign(RSASignature.java:108)
at java.security.Signature$Delegate.init(Signature.java:1079)
at java.security.Signature$Delegate.chooseProvider(Signature.java:1036)
at java.security.Signature$Delegate.engineInitSign(Signature.java:1109)
at java.security.Signature.initSign(Signature.java:503)
at com.sun.net.ssl.internal.ssl.HandshakeMessage$DH_ServerKeyExchange.<init>{code}(HandshakeMessage.java:671)
at com.sun.net.ssl.internal.ssl.ServerHandshaker.clientHello(ServerHandshaker.java:550)
at com.sun.net.ssl.internal.ssl.ServerHandshaker.processMessage(ServerHandshaker.java:178)
at com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Handshaker.java:495)
at com.sun.net.ssl.internal.ssl.Handshaker.process_record(Handshaker.java:433)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:818)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1030)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:678)
at com.sun.net.ssl.internal.ssl.AppInputStream.read(AppInputStream.java:75)
at org.mortbay.util.LineInput.fill(LineInput.java:477)
at org.mortbay.util.LineInput.fillLine(LineInput.java:555)
at org.mortbay.util.LineInput.readLineBuffer(LineInput.java:301)
at org.mortbay.util.LineInput.readLineBuffer(LineInput.java:285)
at org.mortbay.http.HttpRequest.readHeader(HttpRequest.java:240)
at org.mortbay.http.HttpConnection.readRequest(HttpConnection.java:862)
at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:908)
at org.mortbay.http.HttpConnection.handle(HttpConnection.java:833)
at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244)
at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)

======


I am running test using "java YahooTest" command. Here is the YahooTest.java that I am using:
======
import com.thoughtworks.selenium.*;
import junit.framework.*;

public class YahooTest extends TestCase {
private Selenium sel;

public void setUp() {
sel = new DefaultSelenium("localhost",
4444, "*custom firefox -P selenium-custom-https", "https://login.yahoo.com");
sel.start();
}

public void testYahoo() throws Exception {
sel.open("https://login.yahoo.com");
sel.type("login", "username");
sel.type("passwd", "passw");
sel.click("save");
sel.waitForPageToLoad("5000");
}
.....
}
======

Any help/suggestions would be appreciated.

Thanks
Jolly

Jolly Kundu

unread,
Oct 3, 2007, 10:48:50 AM10/3/07
to selenium-users...@googlegroups.com
After unable to launch https://login/yahoo.com, I tried to launch our application (https://host:port) using Selenium RC, but it didn't work as well. I am getting following error in browser:

================
"HTTP ERROR: 403"
Forbidden for Proxy

RequestURI={code:html}<localhost>:<port>{code}
Powered by Jetty://
=================
Reply all
Reply to author
Forward
0 new messages