Display results as :
Advanced Search

Go down
Posts : 2
Join date : 2009-09-08

Selenium Proxy Problem Empty Selenium Proxy Problem

on Tue Sep 08, 2009 8:02 pm

I am trying a run a basic test case using selenium RC but no success Selenium Proxy Problem Icon_neutral

It seems that there is a proxy problem bcoz our company has its internal proxy and selenium could not able to bypass that proxy.

The moment it run using java Google. It opens two mozilla browser. In 1 browser -Selenium Remote Control v1.0 [2677], with core v@VERSION@ [@REVISION] - Mozilla Firefox it search for


Selenium Proxy Problem Moz-screenshot-3Selenium Proxy Problem Moz-screenshot-4ands in other it search for


Please HELP as I am very NEW to selenium and not able to reslove this since long

Please find the server logs inline:

[purvi@localhost selenium-server-1.0]$ java -jar selenium-server.jar -Dhttp.proxyPort=8080 -Dhttp.proxyUser=12345 -Dhttp.proxyPassword=xyz@2009 -Dhttp.nonProxyHosts="*|localhost"
Setting system property http.proxyHost to
Setting system property http.proxyPort to 8080
Setting system property http.proxyUser to 12345
Setting system property http.proxyPassword to xyz@2009
Setting system property http.nonProxyHosts to *|localhost
18:12:03.997 INFO - Java: Sun Microsystems Inc. 1.6.0_0-b12
18:12:03.998 INFO - OS: Linux i386
18:12:04.005 INFO - v1.0 [2677], with Core v@VERSION@ [@REVISION@]
18:12:04.101 INFO - Version Jetty/5.1.x
18:12:04.102 INFO - Started HttpContext[/selenium-server/driver,/selenium-server/driver]
18:12:04.103 INFO - Started HttpContext[/selenium-server,/selenium-server]
18:12:04.103 INFO - Started HttpContext[/,/]
18:12:04.115 INFO - Started SocketListener on
18:12:04.115 INFO - Started org.mortbay.jetty.Server@ae506e
18:12:14.959 INFO - Checking Resource aliases
18:12:14.964 INFO - Command request: getNewBrowserSession[*chrome,, ] on session null
18:12:14.966 INFO - creating new remote session
18:12:15.141 INFO - Allocated session 2b38a8108a4648388dc058273f7bf221 for, launching...
18:12:15.198 INFO - Preparing Firefox profile...
18:12:18.425 INFO - Launching Firefox...
18:12:20.886 INFO - Got result: OK,2b38a8108a4648388dc058273f7bf221 on session 2b38a8108a4648388dc058273f7bf221
18:12:20.892 INFO - Command request: open[, ] on session 2b38a8108a4648388dc058273f7bf221
18:12:20.892 WARN - you appear to be changing domains from to
this may lead to a 'Permission denied' from the browser (unless it is running as *iehta or *chrome,
or alternatively the selenium server is running in proxy injection mode)
18:12:26.110 INFO - Got result: OK on session 2b38a8108a4648388dc058273f7bf221
18:12:26.112 INFO - Command request: type[q, selenium] on session 2b38a8108a4648388dc058273f7bf221
18:12:26.128 INFO - Got result: ERROR: Element q not found on session 2b38a8108a4648388dc058273f7bf221
18:12:26.131 INFO - Command request: testComplete[, ] on session 2b38a8108a4648388dc058273f7bf221
18:12:26.131 INFO - Killing Firefox...
18:12:26.176 INFO - Got result: OK on session 2b38a8108a4648388dc058273f7bf221

More logs:

[purvi@localhost Selenium]$ javac com/example/tests/
[purvi@localhost Selenium]$ java com/example/tests/Google
Time: 11.319
There was 1 error:
1) testNew(com.example.tests.Google)com.thoughtworks.selenium.SeleniumException: ERROR: Element q not found
at com.thoughtworks.selenium.HttpCommandProcessor.throwAssertionFailureExceptionOrError(
at com.thoughtworks.selenium.HttpCommandProcessor.doCommand(
at com.thoughtworks.selenium.DefaultSelenium.type(
at com.example.tests.Google.testNew(
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
at com.thoughtworks.selenium.SeleneseTestCase.runBare(
at com.example.tests.Google.main(

Tests run: 1, Failures: 0, Errors: 1

package com.example.tests;

import junit.framework.*;
import com.thoughtworks.selenium.*;
import java.util.regex.Pattern;
//import org.testng.Reporter;

public class Google extends SeleneseTestCase {

public void setUp() throws Exception {
setUp("", "*chrome");
public void testNew() throws Exception {"");
//if(selenium.isElementPresent("q")) {
selenium.type("q", "selenium");
//} else {
// Reporter.log("Element: is not available on page.");
// }"btnG");
selenium.waitForPageToLoad("60000");"link=Selenium web application testing system");
selenium.waitForPageToLoad("60000");"//a[contains(text(),'The Magic of Selenium: How it\n works')]");
assertTrue(selenium.isTextPresent("Selenium IDE"));
public static Test suite() {
return new TestSuite(Google.class);
public static void main(String args[]) {;

Selenium Proxy Problem Moz-screenshot
Selenium Proxy Problem Moz-screenshot-1Selenium Proxy Problem Moz-screenshot-2
Posts : 387
Join date : 2009-07-30
Location : India

Selenium Proxy Problem Empty Re: Selenium Proxy Problem

on Wed Sep 09, 2009 11:07 am

try using the avoid proxy option in selenium server start up.
For more command options, check out this thread:

Hope this will help you. Best of luck.

Posts : 2
Join date : 2009-09-08

Selenium Proxy Problem Empty Re: Selenium Proxy Problem

on Wed Sep 09, 2009 12:09 pm

I tried that also but output is same. I could not understand what is the problem and what we are missing.

Please HELP
Posts : 387
Join date : 2009-07-30
Location : India

Selenium Proxy Problem Empty Re: Selenium Proxy Problem

on Wed Sep 09, 2009 1:20 pm
I think problem with your url what you providing

It is working 0n 8080 port but selenium is working on 4444 port number.
Try to change port number and see what will happen.

Active particpant
Active particpant
Posts : 19
Join date : 2009-08-14
Age : 34
Location : HYDERABAD

Selenium Proxy Problem Empty Re: Selenium Proxy Problem

on Fri Sep 11, 2009 11:10 am
Hi purviverma,

If you want to run with out proxy mode try to start selenium server with -avoidProxy

command in interactive mode.

If you are running in proxy mode you "*piiexplore
" or "*pifirefox " for IE and forefox respectively.

Nellore Krishna Kumar
Sponsored content

Selenium Proxy Problem Empty Re: Selenium Proxy Problem

Back to top
Permissions in this forum:
You cannot reply to topics in this forum