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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T12:24:59+00:00 2026-06-15T12:24:59+00:00

I have been running tests on a remote XP client for some time now.

  • 0

I have been running tests on a remote XP client for some time now. My tests are written in C# using Selenium’s WebDriver (Version 2.20.0) and the IE Driver (Version 2.20.1.0) with these tests being remotely run on a XP Client managed by Microsoft’s Lab Management.

My issue is that upon creating an IE Browser I am unable to maximise it on the Client through Selenium calls. Instead I am trying manually with the following:

_driver.Manage().Window.Size = new Size(System.Windows.Forms.Screen.PrimaryScreen.WorkingArea.Width, System.Windows.Forms.Screen.PrimaryScreen.WorkingArea.Height);

Along with WorkingArea I have also tried Bounds, but to no avail as both increase the window size but do not position it to the center correctly. I assume this is because a VM has no monitor and thus no way of knowing the actual resolution? I want to just call something that will ‘maximise’ the window to the full screen without specifying the size.

  • 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-15T12:25:00+00:00Added an answer on June 15, 2026 at 12:25 pm

    Since you are running the tests remotely and you need window to be re sized at client side. I would suggest you do it via JavaScript Injection.

    The best thing…it executes on client side, so no worries. In JavaScript I moved the window to (0,0) axis first and then i maximized the window screen to Maximum available (Width, Height).

    Here is code…in C#

        IWebDriver driver = new InternetExplorerDriver();
        driver.Manage().Timeouts().ImplicitlyWait(TimeSpan.FromSeconds(10));
        driver.Navigate().GoToUrl("http://www.google.com");
    
        IJavaScriptExecutor JSDriver = (IJavaScriptExecutor)driver;
    
        JSDriver.ExecuteScript("window.moveTo(0, 0)");
        JSDriver.ExecuteScript("window.resizeTo(screen.availWidth, screen.availHeight);");
    

    I hope this helps…All the best

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

Sidebar

Related Questions

I have been using this code, but have been running into some memory issues:
I have been running tests towards a Core Data model (SQLite3). I now need
I have been running overnight memory tests on an embedded Linux system. Using vmstat
I have been trying to learn Erlang and have been running into some problems
I've been running some tests to see if I can find an efficient selector
I have a website running on a remote server, and want to get some
I have been playing around with the HTML5 offline application cache, running boundary tests
I have been running around here and there on NoSQL big data storage technologies.
I have been running drush scripts (for Drupal ) with Cygwin on my relatively
So I have been running the numbers for Azure and RackSpace Cloud Servers and

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.