Proxy issue with Selenium tool

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Proxy issue with Selenium tool

priyadharshini
Hi,

I am using selenium RC for past 1 year in my project. Since we are working on corporate company, our system is running behind the proxy setting. Initially I was facing problem to execute the selenium test cases by giving the browser name as "*firefox". Finally, I managed to solve the problem by changing the browser name from "*firefox" to "*firefoxproxy". But I don't wish to use the command "*firefoxproxy", because our colleagues are not working under proxy. They are able to execute the scripts by giving "*firefox".

Is there any other way to execute the selenium scripts without changing the browser name?

Note: I tried the following ways, but it didn't help me.
1. start the selenium server with proxy details. eg: -Dhttp.proxyHost, -Dhttp.proxyHost
2. start the selenium server with avoidproxy command

Thanks,
Priya
Reply | Threaded
Open this post in threaded view
|

Re: Proxy issue with Selenium tool

softwaretestingforum
Administrator
Hi Priyadharshini,

Welcome to the group.
I moved your question here - http://manual-and-automated-testing.1070.n6.nabble.com/Selenium-RC-aka-Selenium-1-0-f3676149.html

You did not specifically mention about the error you encounter with *firefox.
Can not you launch the application or is is there trouble with any specific operation?

Also why are you unwilling to use *firefoxproxy? Do you see any discrepancy when you execute tests with *firefoxproxy than in *firefox
~ seleniumtests.com
Reply | Threaded
Open this post in threaded view
|

Re: Proxy issue with Selenium tool

priyadharshini
Hi Tarun,

I am not getting any error while running with "*firefox", it is opening the popup and prompting for proxy username and password for a long time.

Since our colleagues who is not working under proxy setting also using the same code, I don't like to provide the browser name as "*firefoxproxy".

Thanks,
Priya
Reply | Threaded
Open this post in threaded view
|

Re: Proxy issue with Selenium tool

softwaretestingforum
Administrator
Hi Priya,

I really don't see any harm in what you are doing.

Also you might have known that Selemnium RC (also known as Selenium 1) is supported only for backward compatibility.
So if there is a possibility then I would suggest you to think about migrating your code to Selenium 2.

You would not come across such issues in Selenium. At least not so often.
~ seleniumtests.com
Reply | Threaded
Open this post in threaded view
|

Re: Proxy issue with Selenium tool

priyadharshini
Hi Tarun,

Our application is quite big and we have huge number of test cases which is written by selenium RC. Let me think about migrating from RC to 2.

Thanks,
Priya
Reply | Threaded
Open this post in threaded view
|

Re: Proxy issue with Selenium tool

softwaretestingforum
Administrator
Hi Priyadharshini

You might find this helpful - http://seleniumhq.org/docs/appendix_migrating_from_rc_to_webdriver.html
~ seleniumtests.com