TestResults.io
  • What is TestResults.io
  • System Architecture
  • Regulated Markets
    • Health Care Industry
    • Financial Services Industry
  • What's new?
    • Update Instruction
      • Update of the Designer extension in Visual Studio
      • Update the Execution Engine
      • Update the Base- and Environment Models
    • Migration to new project file
  • Designer
    • Overview
    • First Steps
    • Installation
    • TestResults.io solution
    • The development environment
      • Tool Window Overview
        • Test Environments
          • Steps to configure a SUT VM
          • How to access files on the system under test
        • Remote Viewer
          • Control Mode
          • Capture Mode
          • Screen Editor
          • Capture Single Image
        • Screen Explorer
        • Test Case Designer
        • Image Explorer
        • API Testing
        • TestResults.io options
          • Engines
          • Servers
    • Test Cases
      • Adding Test Cases
      • Test Case structure
      • Simple Test Case (Example)
      • Executing your Test Case
      • Generating Test Containers
      • Publishing Test Cases
      • Execution Variables
    • Software Models
      • Adding SW Models
      • Referencing the Model in the Test Case
      • Generating Test Containers
      • Publishing SW Models
      • Screens and Screen Elements
        • Tables
        • Visual Sense
        • Custom Screen Elements
    • Installers
      • Adding Installers
      • Generating Test Containers
      • Publishing Installers
    • Automation Framework Reference
      • Attributes
      • Enumerations
      • Filters
        • IImageFilter Interface
        • Select
        • Resize
      • GlobalEngineParameters
      • ImageDetectionParameters
      • ImageReference
      • Interfaces
        • ITester Interface
          • ITester Methods
          • ITester Properties
        • ITestee Interface
          • ITestee Methods
        • IConnections Interface
          • IConnections Methods
          • IConnections Properties
        • IDebug Interface
        • IEngineResult
        • IHelpers Interface
        • IImageHelper Interface
          • IImageHelper Methods
        • IKeyboard Interface
          • IKeyboard Methods
        • IMouse Interface
          • IMouse Methods
          • IMouse Properties
        • IReport Interface
          • IReport Methods
        • ISUTConnection Interface
      • OcrEngineParameters
        • Best practise
        • IronOcrEngineParameters
        • LEADOcrEngineParameters
        • OcrEngineRelatedCharacters
        • OcrPreprocessingParameters
      • ResultRectangle
      • SutNotReadyException
      • TestStepAbortedException
    • FAQ
      • Two-factor authentication (2FA) and One Time Passwords (OTP)
      • Receive and verify Emails
      • Using Excel as test data source
      • Verify PDF Content
  • Portal
    • Overview
    • First Steps
    • User's Guide
      • Login
      • Projects
      • Dashboard
      • Test Cases
      • Software & Environments
      • Test Sets
      • Job Queue
      • Management
      • Notifications Summary
    • Automation Engineer's Guide
      • Test Automation Workflow
      • Automating a test case
      • Enabling Software & Environments
    • REST API Reference
      • Authentication
      • Projects
      • Test Sets
      • Test Cases
      • Test Plans
      • Test Reports
      • Files
      • Software
      • Environments
      • Untitled
      • Executions
      • Favorites
      • Statistics
      • User Management
      • Customer Management
      • Notifications
      • Configurations
      • Invoicing
  • Models
    • Overview
    • Base Model
      • BaseScreen
        • BaseScreen Properties
        • BaseScreen Methods
      • OnScreenElement
        • OnScreenElement Methods
        • OnScreenElement Properties
      • Primitives
        • Button
          • Button Methods
          • Button Properties
        • Checkbox
          • Checkbox Methods
        • ContextMenu
          • ContextMenu Methods
          • ContextMenu Properties
        • Dropdown
          • Dropdown Methods
          • Dropdown Properties
        • DropdownMenu
          • DropdownMenu Methods
          • DropdownMenu Properties
        • GenericScroller
          • GenericScroller Methods
          • GenericScroller Properties
        • HorizontalScroller
        • IconButton
          • IconButton Properties
        • Label
        • LabelWithButton
          • LabelWithButton Properties
        • LabelWithCheckbox
          • LabelWithCheckbox Properties
        • LabelWithValue
          • LabelWithValue Methods
          • LabelWithValue Properties
        • PwTextBox
          • PwTextBox Methods
        • TextBox
          • TextBox Methods
          • TextBox Properties
        • Tables and lists
          • Column
            • Column Methods
            • Column Properties
          • ItemList
            • ItemList Methods
            • ItemList Properties
          • Row
            • Row Methods
            • Row Properties
          • TableBase
            • TableBase Methods
            • TableBase Properties
        • LabelWithElementBase
          • LabelWithElementBase Properties
      • Enumerations
      • Extensions
        • EngineResultExtensions Methods
        • EnumExtensions Methods
        • ReportExtensions Methods
        • StringExtensions Methods
        • TesterConnectionExtensions Methods
        • TesterDebugExtensions Methods
        • TesterHelperExtensions Methods
        • TesterMouseExtensions Methods
        • TesterOnScreenElementExtensions
        • TesterSelectExtensions Methods
      • Helper Classes
        • BaseModelHelpers
          • BaseModelHelpers Methods
          • BaseModelHelpers Properties
        • Attributes for Designer
        • ListHelpers
      • Exceptions
        • ElementNotFoundException
        • InteractionFailedException
        • ScreenNotFoundException
      • Interfaces
        • IAppBasics Interface
          • IAppBasics Methods
          • IAppBasics Properties
        • IBrowser
        • ICommandLineWindow
        • IScroller Interface
          • IScroller Methods
          • IScroller Properties
        • ISutLocale Interface
          • ISutLocale Methods
          • ISutLocale Properties
        • ISystemHelpers
        • ISystemInteractions
        • IWindow
    • Environment Model
      • Windows
        • Screens
          • CmdWindow
            • CmdWindow Methods
            • CmdWindow Properties
          • FileDialog
            • FileDialog Methods
            • FileDialog Properties
          • FileExplorer
            • FileExplorer Properties
          • RunWindow
            • RunWindow Methods
            • RunWindow Properties
          • Window
            • Window Methods
            • Window Properties
        • SutLocale
          • SutLocale Methods
          • SutLocale Properties
        • SystemHelpers
          • SystemHelpers Methods
          • SystemHelpers Properties
        • SystemInteractions
        • WebBrowser
          • Browser
            • Browser Methods
            • Browser Properties
          • BrowserScroller
            • BrowserScroller Methods
            • BrowserScroller Properties
          • AuthenticationDialog
            • AuthenticationDialog Methods
            • AuthenticationDialog Properties
          • DownloadDialog
            • DownloadDialog Methods
            • DownloadDialog Properties
        • EnvironmentModel Enumerations
        • Interfaces
          • IWebAppBasics
            • IWebAppBasics Property
Powered by GitBook
On this page
  • Authenticate
  • CheckDownloadSuccessful
  • DownloadAndSaveFileAs Method
  • GetURL
  • GoBack
  • GoForward
  • GoToURL

Was this helpful?

  1. Models
  2. Environment Model
  3. Windows
  4. WebBrowser
  5. Browser

Browser Methods

PreviousBrowserNextBrowser Properties

Last updated 5 years ago

Was this helpful?

Authenticate

Authenticates to the server authentication request which is handled by windows or the browser, and not the webpage itself. If no was found on the screen, the method assumes no authentication was required and does nothing. For Internet Explorer the authentication dialog is sometimes opened behind the browser window and therefore not visible. For this reason, if the is IE, the method minimizes the browser window to find the dialog, if it was not detected at first, afterwards the browser window is again brought to the front with Alt-Tab.

Syntax:

public void Authenticate(
	string username,
	string password
)

Parameters:

Parameter

Description

username

password

CheckDownloadSuccessful

Checks if the download was successful and cleans up the notifications and dialogs from the download.

Syntax:

public bool CheckDownloadSuccessful(
	int timeout
)

Parameters:

Parameter

Description

timeout

Return Value:

true if the download was successful, false otherwise.

DownloadAndSaveFileAs Method

Downloads and saves a file under the given path. Browser needs to be configured that it asks what to do with the file to download. This method assumes there is already a download request initiated.

Syntax:

public bool DownloadAndSaveFileAs(
	string path,
	int timeout = 60
)

Parameters:

Parameter

Description

path

[timeout]

Return Value:

true if the download was successful, false otherwise.

GetURL

Copies the URL from the URL textbox and returns it as a string. Special handling for edge to trim \r at the end and close the suggestions.

Syntax:

public string GetURL()

Return Value:

The URL of the current page as a string.

GoBack

Goes back one page using the browser back button. Caller needs to wait for and verify the expected page.

Syntax:

public void GoBack(
    ImgDiffTolerance tolerance = ImgDiffTolerance.Large
)

Parameters:

Parameter

Description

[tolerance]

GoForward

Goes forward one page using the browser forward button. Caller needs to wait for and verify the expected page.

Syntax:

public void GoForward(
    ImgDiffTolerance tolerance = ImgDiffTolerance.Large
)

Parameters:

Parameter

Description

[tolerance]

GoToURL

Navigates the browser to an URL. URL should end in "/" to avoid problems with verification.

Syntax:

public void GoToURL(
	string url,
	bool waitUntilStableScreen = true
)

Parameters:

Parameter

Description

url

[waitUntilStableScreen]

Type: The username that shall be used for the authentication.

Type: The password that shall be used for the authentication.

Type: The timeout in seconds after which the download should be completed.

Type: The path where the file should be saved to.

Type: The timeout in seconds after which the download should be completed.

Type: Tolerance value for the update check when verifying the click on the back button. If previous page differs only slightly from the current page, this value should be changed to a lower tolerance. Default: Large

Type: Tolerance value for the update check when verifying the click on the forward button. If next page differs only slightly from the current page, this value should be changed to a lower tolerance. Default: Large

Type: The url including the "/" at the end.

Type: if true (default) we wait for a stable screen after navigating to the url.

String
String
Int32
String
Int32
String
Boolean
AuthenticationDialog
BrowserType
ImgDiffTolerance
ImgDiffTolerance