Display results as :

Rechercher Advanced Search

Latest topics
» how to connect DB in selenium webriver
Fri Oct 06, 2017 4:09 pm by anbarasi

» How find any text in browser screen and click on it?
Thu Oct 05, 2017 2:02 pm by sandeepkommineni

» Selenium Webdriver
Tue Oct 03, 2017 1:35 pm by PiyushBiswas

» GRID setup tutorial.
Wed Sep 27, 2017 4:29 pm by johnyapp

» Drag & Drop Between Windows Using Selenium Driver
Wed Sep 27, 2017 2:10 pm by 26rondel

» Check if window is closed / verify input
Sat Sep 23, 2017 10:21 pm by brainstir

» How to work on pages with AJAX in selenium?
Mon Sep 18, 2017 6:08 pm by azharuddin

» pause test until user press a key like F2
Wed Aug 09, 2017 11:10 pm by djnforce

» Selecting the input for auto populating element
Sat Jul 29, 2017 7:53 pm by kdabbara


Selenium Proxy Problem

View previous topic View next topic Go down

Selenium Proxy Problem

Post by purviverma on Tue Sep 08, 2009 8:02 pm


I am trying a run a basic test case using selenium RC but no success

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


ands 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[]) {;



Posts : 2
Join date : 2009-09-08

Back to top Go down

Re: Selenium Proxy Problem

Post by Adviser 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 : 379
Join date : 2009-07-30
Location : India

Back to top Go down

Re: Selenium Proxy Problem

Post by purviverma 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 : 2
Join date : 2009-09-08

Back to top Go down

Re: Selenium Proxy Problem

Post by Adviser 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.


Posts : 379
Join date : 2009-07-30
Location : India

Back to top Go down

Re: Selenium Proxy Problem

Post by nellorekrishnakumar 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

Active particpant
Active particpant

Posts : 19
Join date : 2009-08-14
Age : 32
Location : HYDERABAD

Back to top Go down

Re: Selenium Proxy Problem

Post by Sponsored content

Sponsored content

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

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