Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 963961
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T01:45:05+00:00 2026-05-16T01:45:05+00:00

I tried to google, but there are many different ways to work with Selenium.

  • 0

I tried to google, but there are many different ways to work with Selenium. I’m using:
– Windows 2003 Server
– Visual Studio 2008
– Selenium IDE installed through Firefox
– NUnit 2.5 is copied into C:\
– Selenium RC is copied into C:\

  1. First I created a Library Project using C#.
  2. And this my class :
using System;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading;
using NUnit.Framework;
using Selenium;

namespace SeleniumTest
{
    [TestFixture]
    public class NewTest
    {
        private ISelenium selenium;
        private StringBuilder verificationErrors;

        [SetUp]
        public void SetupTest()
        {
            selenium = new DefaultSelenium( "localhost", 4444, "*iexplore", "http://localhost:4444" );
            selenium.Start();
            verificationErrors = new StringBuilder();
        }

        [TearDown]
        public void TeardownTest()
        {
            try
            {
                selenium.Stop();
            }
            catch( Exception )
            {
                // Ignore errors if unable to close the browser
            }
            Assert.AreEqual( "", "" );
        }

        [Test]
        public void TheNewTest()
        {
            selenium.Open( "/google.com" );
        }
    }
}
    
  1. Next add all references from the C:\Selenium RC\selenium-dotnet-client-driver-1.0.1
  2. Compiled the Library Project, succeeded. No errors.
  3. Run NUnit.exe, now errors 🙁

SeleniumTest.NewTest.TheNewTest:
Selenium.SeleniumException : XHR
ERROR: URL =
http://localhost:4444/google.com
Response_Code = 403 Error_Message =
Forbidden+for+Proxy

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T01:45:06+00:00Added an answer on May 16, 2026 at 1:45 am

    You are getting the Forbidden error because you are setting the baseURL to that of Selenium RC. You need to set it to http://www.google.com and then in your test would look like

        [Test]
        public void TheNewTest()
        {
            selenium.Open( "/" );
        }
    

    or you need to change your test to

        [Test]
        public void TheNewTest()
        {
            selenium.Open( "http://www.google.com" );
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have tried to find how to create DLL-s on linux using google, but
I tried scouring the web for help on this issue, but there are so
I tried x = y ** e, but that didn't work.
Pretty self-explanatory, I tried google and got a lot of the dreaded expertsexchange, I
Tried to map it from Preferences -> Settings -> Keyboard, but the key combo
I tried to package a Twisted program with py2exe, but once I run the
I tried but I guess Message Box only works with win forms. What is
Tried something like this: HttpApplication app = s as HttpApplication; //s is sender of
I tried to install Delphi 7 on Vista several times and Vista prevented me
I tried recently to use NAnt (beta 0.86.2962.0) to run some unit tests compiled

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.