Man illustrationFlower illustration

Docy

Switch actions

Estimated reading: 3 minutes 79 views

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


*Application nameReference name of application which will be opened.
*Switch toThe options of the field that wanted to switch in the application or page.
*FieldIf the area to be transferred to is Frame the location (XPath) information of these fields must be written.
TitleIf “Attribute” is selected as action in the Type property, the attribute name to be used must be written. Title field should be left blank for Frame, Default Window and Default Content options.
MatchIt is the structure used when searching by title.
Note: * Fields selected with are required, others are optional.

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

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.

CONTENTS