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

  • Home
  • SEARCH
  • 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 8509375
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T03:25:03+00:00 2026-06-11T03:25:03+00:00

We have an application where we use the Selenium test framework. The application runs

  • 0

We have an application where we use the Selenium test framework. The application runs on Windows Server 2012 and runs regularly through Windows Task Scheduler. I connect to the server through Remote Desktop.

The problem occurs when I set in the scheduled task set-up option “Run whether user is logged on or not”. My application starts to run properly with this javascript code but then it ends immediately with error exception – it is marked on the line below. If I start the application normally, everything works fine. Unfortunately, I need to make an application which can run even when no one is logged on. Hasn´t anyone already met with this problem?

This is my code:

public Bitmap MakeBitmap(Uri url)
{
    driver = MakeFirefoxDriver();
    driver.Navigate().GoToUrl(url.AbsoluteUri);

    // In this command, an exception occurs.
    driver.ExecuteScript("document.body.style.overflow = 'hidden'")

    Thread.Sleep(TimeSpan.FromSeconds(SleepTime));
    var screenshot = driver.GetScreenshot();
    return new Bitmap(Image.FromStream(new MemoryStream(screenshot.AsByteArray)));
}

private FirefoxDriver MakeFirefoxDriver() 
{
    var profile = new FirefoxProfile { EnableNativeEvents = true };
    var capabilityValue = new List<string> { "-width", "500", "-height", "340" };
    var capabilities = DesiredCapabilities.Firefox();
    capabilities.SetCapability("initial", capabilityValue);
    capabilities.SetCapability(FirefoxDriver.ProfileCapabilityName, profile);
    return new FirefoxDriver(capabilities);
}

Exception looks like this:

Exception log: No response from server for url http://localhost:7062/hub/session/......
StackTrace: at OpenQA.Selenium.Remote.HttpCommandExecutor.CreateResponse(WebRequest
request) at OpenQA.Selenium.Remote.RemoteWebDriver.Execute(String
driverCommandToExecute, Dictionary`2 parameters) at ...
  • 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-11T03:25:05+00:00Added an answer on June 11, 2026 at 3:25 am

    I am using Task Scheduler on Windows 7, hopefully it’s the same. In the scheduler, on the General tab, click “Run whether the user is logged on or not”. With this setting, you will need to enter your password whenever you save the properties.
    When it runs nothing will appear on the screen. I have read on these forums that, running in this mode, if you try to grab an image it will be blank.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have one application who use to connect to server via VPN. i can
I am using Cucumber, webrat and selenium to test a web application. I use
I am designing a test application (Using NUnit) that will have to navigate (through
i have application who use specific process during running and i want to sample
Currently we have an application who use spring who support mysql. Some people prefer
I have application which needs to use a dll (also written by me) which
I have an Access application which use SQLServer 2008 R2 as database. When I
I have configured my application to use the Service configuration Local in the development
I have MVC application configured to use Forms Authentication. I'm signing out users by
I have a Web Application that use Hibernate 3.0. When I restart my database

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.