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 8317991
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T21:48:05+00:00 2026-06-08T21:48:05+00:00

I am working with Selenium 2 WebDriver. Instead of UnitTest project, i initiate it

  • 0

I am working with Selenium 2 WebDriver. Instead of UnitTest project, i initiate it from website because of following reasons:

  1. It should automatically run every 24 hours. I have written some scheduling code using System.Threading.
  2. Provide some UI to customer to run it intermediately when they require.
  3. At every run an email would be sent as a part of test result.

My target site is: http://www.vroomvroomvroom.com.au

I have created a Class which has all the Selenium Code. I call that Class using System.Threading upon page load of default.aspx.

It works fine when i run default.aspx from visual studio by pressing F5 OR Ctrl+F5 i.e. with Visual Studio development server e.g. http://localhost:3251/default.aspx.

But, when i try to run it directly from IIS, with default port (80) e.g. http://localhost/seleniumTest/default.aspx, then it fails with following observation/error:

  1. It runs the Selenium code to an extend, but doesn’t show the broswer.
  2. It fails after some steps with No response from server for url http://localhost:7094/hub/session/4bbe4b0c-aeee-4fa3-8bc0-aae47c6869af/element

It is possible what i am trying to achieve.

FYI: Let me know if further details are required.

  • 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-06-08T21:48:06+00:00Added an answer on June 8, 2026 at 9:48 pm

    I have managed to find the solution myself.

    Basically, RemoteWebDriver has to be used instead of FirefoxDriver.
    Steps:

    1. Change the initialization of FirefoxDriver to RemoteWebDriver as:

    Change from

    IWebDriver driver = new FirefoxDriver();
    

    To

    DesiredCapabilities capability = DesiredCapabilities.Firefox();
    Uri url = new Uri("http://REMOTE_IP:4545/wd/hub");
    IWebDriver driver = new RemoteWebDriver(url, capability);
    

    2. Download Selenium Standalone server and initiate it via command prompt using ~

    java -jar E:\Software\selenium-server-standalone-2.24.1.jar -interactive -port 4545
    

    This approach has 2 benefits:

    1. One could use the local IIS for running the test.
    2. Test could be run remotely. Refer Selenium RC documentation. One could see the screenshots remotely using

      REMOTE_IP:4545/wd/hub/static/resource/hub.html

    I am thinking to modify the code of hub.html and client.js file used within it to provide a better Remote feel.

    I hope this can be useful for others as well.

    FYI:

    1. IP address REMOTE_IP could be changed to any realtime IP address OR localhost. Use the above mentioned port while initiating the page request.
    2. Start/Stop code of Standalone Server could be fitted inside the test, so that it is automatically started/stopped via batch file.
    3. Keep the server running by not closing the command prompt.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working on a website scraping project using Selenium in Python. When I
I'm working on a project using Scala running Selenium tests as part of a
I'm working on a project which is using Selenium and I'd like to try
I am working with a tester who is using Selenium in my latest project.
I'm working on a Java Selenium-WebDriver. I added driver.manage().timeouts().implicitlyWait(2, TimeUnit.SECONDS); and WebElement textbox =
I am using Selenium webdriver in Python for a web-scraping project. The webpage, I
Recently I am working on selenium webdriver 2.0 (developing automation framework). As per requirement
I'm working with Selenium 2 WebDriver in Eclipse and everything works fine. But when
I am using Selenium WebDriver and its was working all fine and today i
I get generic error occurred in GDI+ for selenium webdriver.It was working fine still

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.