Maximizing SUT windows – a good idea?

In QF-Test product support we are often asked how to set a QF-Test controlled browser or other SUT windows to fullscreen mode.

It’s better to work with fixed window sizes

In fact, we advise against maximizing windows for the following reason: The maximized window size depends on the system, a fixed window size is the same on every system instead.

QF-Test is comparatively resistant to changes in component coordinates. However, web applications in particular can display completely different page layouts depending on the window size. In the worst case, this can lead to individual components no longer being found.

If the browser is always started with a fixed window size instead, the test behaves uniformly on all computers.

In the preparation sequence that opens the browser, you will find an “Open browser window” node below the “Start SUT if necessary” node, in which you can specify a uniform window size.

How to use fullscreen anyway

If you still want to maximize your browser window, you can use the following Jython server script in QF-Test to maximize all windows containing e.g. “Edge” in the window title under Windows:

import autowin, re

windows = autowin.getAllWindows()
for win in windows:
    title = autowin.getWindowText(win)
    if re.match(".*Edge.*", title):
        autowin.maximizeWindow(win)

You can customize the regular expression ".*Edge.*" to address exactly the window you are interested in with its window title.

We use "Matomo" cookies to anonymously evaluate your visit to our website. For this we need your consent, which is valid for twelve months.

Cookie Configuration

Functional cookies

We use functional cookies to ensure the basic functionality of the website.

Performance and statistics cookies

We use Matomo for analyzing and optimizing our website. Cookies permit an anonymous collection of information that help us offering you a clear and user-friendly visit of our web pages.

Cookie details
Description Vendor Lifetime Type Purpose
_pk_id Matomo 13 Months HTTP Contains a unique, pseudonymized visitor ID internal to Matomo for recognizing returning visitors.
_pk_ref Matomo 6 Months HTTP Used to track from which website the anonymized user proceeded to our website.
_pk_ses Matomo 1 Day HTTP The Matomo session cookie is used to track the visitor's page requests during the session.
_pk_testcookie Matomo Session HTTP Used to check whether the visitor's browser supports cookies.
_pk_cvar Matomo 30 Minutes HTTP Temporarily store data about the visit.
_pk_hsr Matomo 30 Minutes HTTP Temporarily store data about the visit.