Skip to content

refresh

roei sabag edited this page Jul 12, 2020 · 1 revision

Description

Refreshes the current page. The action will be completed when page ready state complete or until page loading timeout reached.

Scope

Web, Mobile Web or any other Web Driver implementation which implements Refresh.

Properties

Property Description
argument Plugin conditions and additional information.

Command Line Arguments (CLI)

None

Examples

Example no. 1

Can be tested on

Refreshes the current page.

Action Rule (JSON)

{
    "action": "Refresh"
}

Rhino Literal

refresh

CSharp

// option no.1
var actionRule = new ActionRule
{
    Action = PluginsList.Refresh
};

// option no.2
var actionRule = new
{
    Action = "Refresh"
};

Python

action_rule = {
    "action": "Refresh"
}

Java Script

var actionRule = {
    action: "Refresh"
};

Java

ActionRule actionRule = new ActionRule().setAction("Refresh");

Example no. 2

Can be tested on

Refreshes the current page 2 times.

Action Rule (JSON)

{
    "action": "Refresh",
    "argument": "2"
}

Rhino Literal

refresh {2}

CSharp

// option no.1
var actionRule = new ActionRule
{
    Action = PluginsList.Refresh,
    Argument = "2"
};

// option no.2
var actionRule = new
{
    Action = "Refresh",
    Argument = "2"
};

Python

action_rule = {
    "action": "Refresh",
    "argument": "2" 
}

Java Script

var actionRule = {
    action: "Refresh",
    argument: "2"
};

Java

ActionRule actionRule = new ActionRule().setAction("Refresh").setArgument("2");

Clone this wiki locally