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've tried many different Google searches but I haven't been able to find a
Sorry asking so many questions but believe me.. I tried Google first. :) When
I was thinking this question for a while, and ever tried to google but
I tried searching in google but could not find any useful answer, if(verifier.length() >
I've tried to google the subject but couldn't find anything useful. So, is it
I tried Google this issue and was searched over an hour on Stackoverflow, but
i tried to google style input box . but i stucked at input:focus. code
I have tried searching on Google and also read the documentation but no success.
I know silly question but i tried looking it up on Google with no
I tried to find the difference on Google. BUT I 'm not able to

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.