testing via https connection - click "Proceed Anyway" everytime in Google Chrome

385 views
Skip to first unread message

zihao

unread,
Aug 27, 2010, 11:57:38 AM8/27/10
to Selenium Users
Hi all. I am testing a web application using https connection. The
certificate is self-signed. The browser is Google Chrome. Everytime I
run the test, I have to click "proceed anyway" button on the Chrome
warning page. Is there anyway I can remove this step? I have already
appended -trustAllSSLCertificates to Selenium RC server command.
Thanks.

Daniel Wagner-Hall

unread,
Sep 1, 2010, 10:20:05 AM9/1/10
to Selenium Users
I've just added support for -trustAllSSLCertificates to RC for Chrome
(http://code.google.com/p/selenium/source/detail?r=9567). Either grab
the copy of Selenium RC from the subversion trunk, or wait until the
next release.

tj23

unread,
Sep 2, 2010, 3:49:14 AM9/2/10
to Selenium Users
Hi Daniel,

I am facing with the same problem reported in the thread and am
willing to give a try with the fix that you have put in.But I'm new to
Selenium and I've no knowledge as to build selenium server with the
latest revision of files from the trunk.Is the steps available
anywhere?Can you help me with this?

I've already checkedout latest files using svn - "svn checkout
http://selenium.googlecode.com/svn/trunk/ selenium-read-only".

Thanks in advance.

Daniel Wagner-Hall

unread,
Sep 2, 2010, 9:18:01 PM9/2/10
to Selenium Users
If you cd to the directory you checked out the files to (selenium-read-
only) and execute the following command:

go selenium-server-standalone

a jar file named something like server-standalone.jar should appear
somewhere like build/remote/server

On Sep 2, 8:49 am, tj23 <trijimo...@gmail.com> wrote:
> Hi Daniel,
>
> I am facing with the same problem reported in the thread and am
> willing to give a try with the fix that you have put in.But I'm new to
> Selenium and I've no knowledge as to build selenium server with the
> latest revision of files from the trunk.Is the steps available
> anywhere?Can you help me with this?
>
> I've already checkedout latest files using svn - "svn checkouthttp://selenium.googlecode.com/svn/trunk/selenium-read-only".

tj23

unread,
Sep 6, 2010, 6:48:20 AM9/6/10
to Selenium Users
Daniel,

I tried your steps but I got this error when I ran go selenium-server-
standalone:

'pkg-config' is not recognized as an internal or external command,
operable program or batch file.No Gecko sdk detected. Install
xulrunner-dev to compile 64-bit Firefox extension.Unable to locate
'jar' command

I am using a Windows XP PC with SVN command line utility and am a
Selenium-RC user.

Thanks,
Triji

tj23

unread,
Sep 6, 2010, 8:16:09 AM9/6/10
to Selenium Users
Daniel,

Would it be possible for you to send me just the class file for remote
\server\src\java\org\openqa\selenium\server\browserlaunchers
\GoogleChromeLauncher.java, so that I'll replace only that class file
in the selenium-server.jar and test.I find that your fix has changed
only this file, so I believe this should work.

Thanks,
Triji

Jayakumar C

unread,
Sep 6, 2010, 8:29:28 AM9/6/10
to seleniu...@googlegroups.com
It's here,
http://code.google.com/p/selenium/source/browse/trunk/remote/server/src/java/org/openqa/selenium/server/browserlaunchers/GoogleChromeLauncher.java?spec=svn9567&r=9567


--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To post to this group, send email to seleniu...@googlegroups.com.
To unsubscribe from this group, send email to selenium-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/selenium-users?hl=en.




--
Jayakumar

Daniel Wagner-Hall

unread,
Sep 6, 2010, 4:54:58 PM9/6/10
to Selenium Users

tj23

unread,
Sep 7, 2010, 7:21:41 AM9/7/10
to Selenium Users
Thank you for the response Jayakumar.

Daniel,

Thanks much for the JAR .The -trustAllSSLCertificates switch now works
for googlechrome as well with the latest jar.However, with my little
java knowledge,when I tried replacing the class
files(GoogleChromeLauncher$PrefLeafNode.class, GoogleChromeLauncher
$PrefNode.class, GoogleChromeLauncher.class) for the java file that
your change has affected, in the selenium-server.jar(For RC 1.0.3)
that I am currently using, googlechrome launcher fails. I see this
exception.Please let me know if you have any idea in this regard.Is
this do-able?Is what I'm doing correct?If not, please suggest a way to
incorporate your change in RC 1.0.3.

15:07:22.858 INFO - Launching Google Chrome...
15:07:22.858 WARN - POST /selenium-server/driver/ HTTP/1.1
java.lang.NoClassDefFoundError: org/openqa/selenium/internal/
CommandLine
at
org.openqa.selenium.server.browserlaunchers.GoogleChromeLauncher.launch(GoogleChromeLauncher.java:
74)
at
org.openqa.selenium.server.browserlaunchers.AbstractBrowserLauncher.launchRemoteSession(AbstractBrowserLauncher.java:
34)
at
org.openqa.selenium.server.BrowserSessionFactory.createNewRemoteSession(BrowserSessionFactory.java:
372)
at
org.openqa.selenium.server.BrowserSessionFactory.getNewBrowserSession(BrowserSessionFactory.java:
124)
at
org.openqa.selenium.server.BrowserSessionFactory.getNewBrowserSession(BrowserSessionFactory.java:
86)
at
org.openqa.selenium.server.SeleniumDriverResourceHandler.getNewBrowserSession(SeleniumDriverResourceHandler.java:
733)
at
org.openqa.selenium.server.SeleniumDriverResourceHandler.doCommand(SeleniumDriverResourceHandler.java:
399)
at
org.openqa.selenium.server.SeleniumDriverResourceHandler.handleCommandRequest(SeleniumDriverResourceHandler.java:
370)
at
org.openqa.selenium.server.SeleniumDriverResourceHandler.handle(SeleniumDriverResourceHandler.java:
129)
at org.openqa.jetty.http.HttpContext.handle(HttpContext.java:
1530)
at org.openqa.jetty.http.HttpContext.handle(HttpContext.java:
1482)
at org.openqa.jetty.http.HttpServer.service(HttpServer.java:
909)
at
org.openqa.jetty.http.HttpConnection.service(HttpConnection.java:820)
at
org.openqa.jetty.http.HttpConnection.handleNext(HttpConnection.java:
986)
at
org.openqa.jetty.http.HttpConnection.handle(HttpConnection.java:837)
at
org.openqa.jetty.http.SocketListener.handleConnection(SocketListener.java:
245)
at
org.openqa.jetty.util.ThreadedServer.handle(ThreadedServer.java:357)
at org.openqa.jetty.util.ThreadPool
$PoolThread.run(ThreadPool.java:534)
Caused by: java.lang.ClassNotFoundException:
org.openqa.selenium.internal.CommandLine
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 18 more


Thanks in advance.


On Sep 7, 1:54 am, Daniel Wagner-Hall <dawag...@gmail.com> wrote:
> I've put the jar up athttps://www.illicitonion.co.uk/dump/selenium-server-standalone-r9604.jar

Daniel Wagner-Hall

unread,
Sep 9, 2010, 12:11:41 PM9/9/10
to Selenium Users
Can you just use the jar file I uploaded until the next release? The
problem is that you're also missing
org.openqa.selenium.internal.CommandLine.class (and maybe some other
files - there have been some internal changes to how the RC code is
structured since 1.0.3). You can try copying the .class file from my
jar to yours, but really the easiest way would be to just use my
jar...

tj23

unread,
Sep 14, 2010, 1:32:26 AM9/14/10
to Selenium Users
Okay Daniel.Thanks much for the input.

Zoubeida

unread,
Sep 20, 2010, 7:09:56 AM9/20/10
to Selenium Users
Hello,

I want to automate the test of my intranet. i have a https connection.
i have created a new profile firefox and i have generated the
"cert_override.txt" and i put it under selenium-server.jar::selenium-
server.jar
i run selenium server with this command
java -jar selenium-server.jar -firefoxProfileTemplate "path/to/
firefoxprofile" -trustAllSSLCertificates


i have this ERROR:

11:53:00.424 INFO - Preparing Firefox profile...

(firefox:2411): GLib-WARNING **: g_set_prgname() called multiple times

(firefox:2411): GLib-WARNING **: g_set_prgname() called multiple times
11:53:03.175 INFO - Launching Firefox...
11:53:06.458 INFO - Got result: OK,607dbf1036c448fa8061b71342539412 on
session 607dbf1036c448fa8061b71342539412
11:53:06.467 INFO - Command request: open[/, ] on session
607dbf1036c448fa8061b71342539412
11:53:06.609 INFO - Got result: XHR ERROR: URL = https://my_application_under_test/
Response_Code = -1 Error_Message = Request Error on session
607dbf1036c448fa8061b71342539412
11:53:06.626 INFO - Command request: testComplete[, ] on session
607dbf1036c448fa8061b71342539412
11:53:06.627 INFO - Killing Firefox...
11:53:06.652 INFO - Got result: OK on session
607dbf1036c448fa8061b71342539412


anyone has an idea???
to test htpps application should i use the Selenium proxy ??




Zoubeida

unread,
Sep 20, 2010, 7:21:28 AM9/20/10
to Selenium Users

Subhabrata Pal

unread,
Oct 31, 2010, 5:32:22 AM10/31/10
to Selenium Users
Hi,

I am also got similar sort of problem as above:

I updated my jar file with the one given above..

Also changed the "GoogleChromeLauncher.class" as given in "http://
jira.openqa.org/browse/SRC-740"

Still I am getting a 404 error

The requested URL /selenium-server/core/RemoteRunner.html?
sessionId=8bbfdca315c64f66b185fa7b68b15519&multiWindow=true&baseUrl=http
%3A%2F%2Fwww.google.co.in&debugMode=false was not found on this
server.

while command prompt is displaying

14:52:59.554 INFO - Command request: getNewBrowserSession[*custom C:
\Program Fil
es\Google\Chrome\Application\chrome.exe, http://www.google.co.in, ] on
session n
ull
14:52:59.560 INFO - creating new remote session
14:52:59.573 INFO - Allocated session 8bbfdca315c64f66b185fa7b68b15519
for http:
//www.google.co.in, launching...

Any suggestion?
Thanks for any help

Regards
Subhabrata
> > > > > > > > > > certificate is self-signed. The browser isGoogleChrome. Everytime I
> > > > > > > > > > run the test, I have to click "proceed anyway" button on theChrome
> > > > > > > > > > warning page. Is there anyway I can remove this step? I have already
> > > > > > > > > > appended -trustAllSSLCertificates to Selenium RC server command.
> > > > > > > > > > Thanks.
>
> > > > > > > > > I've just added support for -trustAllSSLCertificates to RC forChrome
> > > > > > > > > (http://code.google.com/p/selenium/source/detail?r=9567).  Either grab
> > > > > > > > > the copy of Selenium RC from the subversion trunk, or wait until the
> > > > > > > > > next release.- Hide quoted text -
>
> - Show quoted text -
Reply all
Reply to author
Forward
0 new messages