Legacy | UFT Function Reference: MBrowser
This object represent a Mobile Web Browser.
Used with the following commands:
Properties
The built-in MBrowser properties that can be retrieved from the MBrowser include:
- label
- automation
- user_agent
- url
- unload_event_start
- unload_event_end
- title
- source
- secure_connection_start
- response_start
- response_end
- request_start
- request_end
- report_image_resolution
- redirect_start
- redirect_end
- page_load_time
- outer_html
- navigation_start
- load_event_start
- load_event_end
- fetch_start
- domain_lookup_start
- domain_lookup_end
- dom_loading
- dom_interactive
- dom_content_loaded_event_start
- dom_content_loaded_event_end
- dom_complete
- connect_start
- connect_end
Functions
Name | Arguments | Description |
---|---|---|
Clean |
|
Clear the browser content, including bookmarks, cache, cookies, history, and passwords. |
Execute | JS script timeout |
Execute a JavaScript script on the device browser application. |
Goto | URL | Open the browser application and browses to the specified location. This function is available only on selected platforms. |
Navigate | Type | Direct the browser page back and forward. |
Open |
|
Open the browser application. This function is available only on selected platforms. |
Sync | timeout | Verify the browser application is running and page is loaded. |
GetControlProperty | Property performance timeout |
Return the current value of the specified property of the object. |
GetROProperty | Property | Return the current value of the specified property of the object. |
Additional UFT functions |
|
|
Examples
UFT Mobile Code Syntax | Description |
---|---|
Device("DUT").MBrowser("Browser").Goto "google.com" | On the device under test (DUT), opens the browser application and browses to the Google website. |
Device("DUT").MBrowser("Browser").GetROProperty "url" | On the DUT, retrieves the webpage URL property. |
Device("DUT").MBrowser("Browser").Navigate "back" | On the DUT, directs the browser page back to the previous page. |