Legacy | Browser go to

  • Command: browser

  • Subcommand: goto

  • Supported Platforms: Native (legacy), UFT (legacy), Selenium, Appium

    All commands must be executed using the same framework. Sharing the execution ID between different frameworks is not possible. This means that if you work with a Selenium/Appium driver, you need to call the commands using the Selenium/Appium driver (or, in the case of Reporting commands, through the Reporting SDK that works with the driver) and not as part of a UFT test or another framework.

  • Supported OS: Android, iOS

Description

Opens the browser application and browses to the specified location. This is done with a direct native command to the device OS, and not with navigation.

No validation is performed. The green success status confirmation within the execution report does not validate that the browser was opened; rather, it validates that the native command request was successfully received by the device OS.

The URL page will not refresh if the browser go to function is used with the same URL consecutively. To ensure that the URL page is reloaded, use the Browser open function followed by the Browser go to function.


Parameters

Name

Value

Default

Description

deviceID*

   

The device for this command.

url*

   

The specified URL.

waitForPageLoad

 

false

Selects whether command should execute synchronously - waiting for the page to load before returning control. Default is to work asynchronously, and return immediately after registering the request.

automation

simulated (Default)

os (OS)

chrome ()

safari ()

native ()

default

The automation mode for web applications.

Default - open the browser set as default on the device

Perfecto Mobile - PM Browser

OS - DOM object supported browser. Safari for iOS, Chrome for Android.

Select the OS option to use the real DOM on native browsers. When using this option, the system will ensure that only one tab is opened.

* Mandatory parameter

Request & Response

Copy

Request

https://mycloud.perfectomobile.com/services/executions/john@perfectomobile.com_controller_16-12-07_08_30_54_151?operation=command&securityToken=<your_token>&command=browser&subcommand=goto&param.deviceId=2ACB96B8&param.url=cnn.com
Copy

JSON response

{
    "reason":"Success",
    "timer.elapsed":"250",
    "returnValue":"OK",
    "testGridReportUrl":"https://mycloud.reporting-stg.perfectomobile.com?externalId[0]=john@perfectomobile.com_controller_16-12-07_08_30_54_151",
    "description":"Success",
    "timer.system":"0",
    "completed":"true",
    "flowEndCode":"SUCCEEDED",
    "executionId":"john@perfectomobile.com_controller_16-12-07_08_30_54_151",
    "timer.ux":"250",
    "singleTestReportUrl":"https://mycloud.perfectomobile.com/nexperience/singletest/report/?reportRepositoryKey=PRIVATE:controller/161207/controller_16-12-07_08_30_54_151.xml&ownerId=john@perfectomobile.com&sharingCode=a8d8ba68-ee11-4594-a83a-2eca62034d2c",
    "reportKey":"PRIVATE:controller/161207/controller_16-12-07_08_30_54_151.xml",
    "timer.device":"250"}