Browser navigate (FR)

Perfecto Command

mobile:browser:navigate

Purpose

Directs the browser page back and forward. Can also be used to refresh the current webpage.

Description

Directs the browser page back and forward (supports the browser's navigation buttons). Can also be used to refresh the current webpage.

The command can be used with Java code.

Copy
Sample Java code
Map<String, Object> params = new HashMap<>();
params.put("target", "back");
String res = (String) driver.executeScript("mobile:browser:navigate", params);