Man illustrationFlower illustration

Switch actions

Estimated reading: 4 minutes 292 views

Switch actions activity allows switching between desired windows or frames through the browser or application.


*Application nameThe reference name of applications which has already been opened or attached is chosen in the dropdown application which will be opened.
*Switch toThe option of the field that wanted to switch in the application or page is chosen in the dropdown.
*FieldIf the area to be transferred to is a frame, any field (XPath) in the frame must be written.

Note: If the “Switch to” property is selected as a “default window” or “default content”, the “Field” property can be left blank.
*TitleIf the “Switch to” action is selected as “Window”, the “Match” action should be chosen appropriately. The window title should be written “Title” field.

If the full window title is written “Title” field, the equals option should choose in the “Match” field.

If the starting of the window title is written “Title” field, the starts option should choose in the “Match” field.

If the ending of the window title is written “Title” field, the ends option should choose in the “Match” field.

If any part of the window title is written “Title” field, the contains option should choose in the “Match” field.
MatchThe desired option can be chosen when searching by title.
Retry CountThe number of attempts until the operation occurs is written, which can be any numeric value.
Note: * The required fields may change according to the selected features.

You can use the Application name as shown in the example.

${robustaWebpage}

You can use the Switch to as shown in the example.

It allows switching between pages that are open more than one in the application:

Window

It allows to switch to frame within the opened application:

Frame

It provides the transition to the default main window:

Default Window

It is used to return to the previous content after switching to a Frame. In addition, although the elements to be accessed in some websites and applications cannot be in a separate window or frame, they still require access with the switch method. In these cases, the desired action can be performed by switching the content containing the element:

Default Content

You can use the Field as shown in the examples.

Since Xpath information is not required for Window, Default Content and Default Window options, the field can be filled with (*) character.

//*[@id=”google_ads_iframe”]

//*[@id=”Content-Language”]

You can use the Title name as shown in the examples.

Home – Robusta

You can use the Match as shown in the examples.

It is the structure used when searching by title.

The title name of the window to be switched must be written exactly the same:

Equals

It is sufficient to write a certain part from the beginning of the title name of the window to be switched:

Starts

It is sufficient to write a certain part from the end of the title name of the window to be switched:

Ends

It is sufficient to write a word that is in the title name of the window you want to switch to and is not found in other windows:

Contains

If the window you want to switch to does not have the title name, it should be selected:

Notitle

It enables transition to the next window that opens. When this actions is selected, it is not necessary to fill the title field:

Next

You can use the Retry Count as shown in the examples.

7

If a title is not written in the window to be switched, the “Match” property can be selected as “Notitle” or “Next”.

Next option switches to the window that opens immediately after the existing window.

Share this Doc

Switch actions

Or copy link

CONTENTS
Chat Icon Close Icon