Browser
Description
A class for a web browser that offers basic navigation and interactions with the web browser that are not part of the webpage itself, such as FileDownload. Implements the IBrowser interface.
Browser Class
Namespace: Progile.TRIO.EnvironmentModel.WebBrowser Assembly: Progile.TRIO.EnvironmentModel.Windows (in Progile.TRIO.EnvironmentModel.Windows.dll)
Inheritance Hierarchy:
Object Progile.TRIO.BaseModel.OnScreenElement Progile.TRIO.BaseModel.BaseScreen Progile.TRIO.EnvironmentModel.Window Progile.TRIO.EnvironmentModel.WebBrowser.Browser
Constructors
Syntax:
Parameter | Description |
t | Type: ITester The tester interface. |
systemHelper | Type: ISystemHelpers An instance of the ISystemHelpers interface that allows interaction with the SUT operating system. |
Methods
Name | Description |
Authenticates to the server authentication request which is handled by windows or the browser, and not the webpage itself. If no AuthenticationDialog was found on the screen, the method assumes no authentication was required and does nothing. | |
Checks the download was successful and cleans up the notifications and dialogs from the download. | |
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. | |
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. | |
Goes back one page using the browser back button. Caller needs to wait for and verify the expected page. | |
Goes forward one page using the browser forward button. Caller needs to wait for and verify the expected page. | |
Navigates the browser to an URL. URL should end in "/" to avoid problems with verification. |
Properties
Name | Description |
The icon to navigate one page back. | |
The Select defining the content of the browser window. Does not contain Browser toolbars, tabs and URL textbox. | |
The download dialog that is opened when a download is requested on a webpage (except on Chrome where directly a FileDialog is opened). | |
The icon to navigate one page forward. | |
The icon to navigate to the home page. This icon is also used to check if a browser is open and depending on which representation is found, defines the Browser.Type. | |
The icon to refresh the current page. | |
The type of the browser (e.g. IE, Firefox, Edge or Chrome). | |
The url textbox. |
Last updated