1. Home
  2. Opkey Help
  3. 25. Opkey Keyword Documentation
  4. 25.2.3 Generic Keywords – Function

25.2.3 Generic Keywords – Function

ClickAt

This keyword clicks on object according to specified co-ordinates. This keyword is used in situations where you want to click on button according to its position on  web page, when we are not able to identify that button or object.

For Example: you want to click on button using its x and y co-ordinates.

Input Arguments

Object Input Arguments

Required?

Description

Object

Yes

This Keyword takes one object input argument. You can choose the object from your Object Repository on which you want to perform click operation.

Data Input Arguments

Required?

Description

Coordinates

Yes

Specify the (X;Y) co-ordinates of specified object.

Note: you can get (X;Y) co-ordinates from (Left,Top) property of selected object from OR.

 

Output

 

True

If the keyword passes successfully

False

If an error is there

Example

In the example above, if you want to click on “Click to log events”, then provide (X;Y) co-ordinates of this button from web page.

note: you can perform click operation on this button object, without specifying any property of this object.

ClickAt

Object <   Choose Object From OR   >
Coordinates < 38;1493 >

Common Error conditions

Scenarios

Error Message

Debug Information

If object is not found

Argument Data Missing

Data not provided for argument: ‘Object’. Expected StaticValue was empty.

DefocusObject

This keyword removes the focus from the Object which is currently focused. It does not require any Data Input Argument or Object Input Argument.

Input Arguments

Object Input Arguments

Required?

Description

Object

No

This keyword doesn’t take any object input argument.

Data Input Arguments

Required?

Description

Data

No

This keyword doesn’t take any data input argument.

Output

 

True

If the keyword passes successfully

False

If an error is there

Example

URL

Comments

This keyword removes the focus from the Object which is currently focused.

In the above screenshot, the “Yes” text box is focused by default, now if you wish to remove the focus from the Text Box object then you can do so by using “Defocus Object” Keyword.

Common Error conditions

Scenarios

Error Message

Debug Information

When browser was never opened or the keyword is used without launching web-page on browser.

Insufficient Privileges (-14100)

DESCRIPTION:

The system does not have sufficient privileges to carry out a particular task. This mostly happens when the currently logged-in user at the execution site does not have permission to access a particular resource. The protected resource may be a network share, folder or a drive. User may contact the system administrator to sort out the issue.

Either Browser was never Opened  or all Web Driver instances were closed

FetchBrowserTitle

This keyword fetches the title of current opened browser by OpKey. This keyword doesn’t take any input argument.

Input Arguments

Object Input Arguments

Required?

Description

Object

No

This keyword doesn’t take any object input argument.

Data Input Arguments

Required?

Description

Browser Name

Yes

This keyword take browser Name as data input argument.

Output

 

True

If the keyword passes successfully

False

If an error is there

Example

Image

Comments

BrowserTitle.jpg

This keyword fetches the title of current opened browser.

Common Error conditions

Scenarios

Error Message

Debug Information

When URL is not given.

Browser: Mozilla Firefox

URL:

Argument Data Missing (-13200)

Insufficient Privileges (-14100)

Argument(s): (Browser,URL) are blank

Either Browser was never Opened  or all WebDriver instances were closed

-plugin-unable-to-take-screenshot-

When Browser name is not given

Browser:

URL: https://cresconnect.crestechglobal.

com/index.php?

Argument Data Missing (-13200)

Insufficient Privileges (-14100)

Argument(s): (Browser,URL) are blank

Either Browser was never Opened  or all WebDriver instances were closed

-plugin-unable-to-take-screenshot-

FetchBrowserURL

This keyword is used to fetch the url of currently working browser. This keyword is mostly used in situations where you need to verify the URL on which you are working.

Input Arguments

Object Input Arguments

Required?

Description

Object

No

This keyword doesn’t take any object input argument.

Data Input Arguments

Required?

Description

No

No

This keyword doesn’t take any data input argument.

Output

 

True

If the keyword passes successfully

False

If an error is there

Example

In the example above, if you want to fetch the URL, Open any browser and use this keyword “FetchBrowserURL” and it will provide” https://www.zoomtra.com/ “ as output. Here is how you will use this keyword.

Note: No error condition available for this keyword

FetchObjectPropertyInTableCell

This Keyword gets the Object property such as name, id, class etc from table cell. It takes table object as object input argument and row number, column number, tag of element, index of element and property name as Data input arguments.

Input Arguments

Object Input Arguments

Required?

Description

Object

Yes

This keyword takes one table object as Input argument. You can choose a table   Object from your Object Repository.

Data Input Arguments

Required?

Description

Row Index

Yes

Specify the Row Index of the cell in which Text is available

Note: Row Index start from zero

Column Index           Yes

Specify the Column Index of the cell in which Text is available

Note: ColumnIndex start from zero

Tag Yes

Specify Object Tag.

Note: Give the Tag value of parent object.

Index Yes Specify the Index of the table object
Property Yes

Specify the Property Name that should be anything like “innertext”,”tag”,”index”,”link”

Note:Property should be available in Object

Output

 

True

If the keyword passes successfully

False

If an error is there

Example

URL

Comments

https://en.wikipedia.org/wiki/List_of_Bollywood_films_of_2017

1.jpg

This keyword  fetches the Object property such as name, id, class etc from table cell on  the web page.

In the above example we need to find the Object Property in  the Table Cell (1,1) “Baahubali 2: The Conclusion” Object on the web page, we can do so by using “FetchObjectPropertyInTableCell” keyword  as shown below:

FetchObjectPropertyInTableCell

Object

<   Choose your table object from OR     >  Here,  Baahubali 2: The Conclusion.

Row Index

< 1 >

                   Column Index     < 1 >
Tag <  A  >
Property <   Link  >
Index <   0   >

Common Error conditions

Scenarios

Error Message

Debug Information

When no object is provided

Argument Data Missing (-13200)

DESCRIPTION:

A step could not be executed because one or more of the arguments have not been provided a value. Of all the arguments a keyword accepts, some arguments might be compulsory. As opposed to the non-compulsory ones, the compulsory argument must be provided some data. The data may be provided through one of many sources like statically entering, output of a previous step, a global variable etc; but it must not be left blank.

Data not provided for argument: ‘Object’. Expected Static Value was empty

when Blank data Input arguments are  provided

Argument Data Missing (-13200)

 

DESCRIPTION:

A step could not be executed because one or more of the arguments have not been provided a value. Of all the arguments a keyword accepts, some arguments might be compulsory. As opposed to the non-compulsory ones, the compulsory argument must be provided some data. The data may be provided through one of many sources like statically entering, output of a previous step, a global variable etc; but it must not be left blank.

Argumemt(s) : (Row Index;Column Index;Tag;Property) is/are blank.

GetAllButtons

This keyword returns Name/ID/innertext property of all available buttons of current page. This keyword does not takes any input parameter.

This keyword is mostly used in situations where you want to get all the buttons available on a particular web page.

For example, you want to get all the buttons available on google webpage.

Input Arguments

Object Input Arguments

Required?

Description

Object

No

This keyword doesn’t take any object input argument.

Data Input Arguments

Required?

Description

No

No

This keyword doesn’t take any data input argument.

Output

 

True

If the keyword passes successfully

False

If an error is there

Example

For example, you want to get all the buttons available on google, here is how you will use this keyword:

C:UsersAKANKS~1.JAIAppDataLocalTempSNAGHTMLa35bb9.PNG

Common Error conditions

Scenarios

Error Message

Debug Information

If no browser is given

Insufficient Privileges

Either Browser was never Opened or all WebDriver instances were closed.

GetAllColumnText

This Keyword  fetches all the text of table column wise, separated by delimiter. It takes table object, column delimiter and row delimiter as input parameters. It takes an OR Object of table type as Object Input Argument and Column delimiter & Row Delimiter as data input arguments.

Input Arguments

Object Input Arguments

Required?

Description

Object

Yes

This keyword takes one table object Input argument. You can choose table object from your Object Repository.

Data Input Arguments

Required?

Description

Column Delimiter

Yes

Specify the text/symbol/special characters by which the column text has to be separated.

Row

Delimiter

Yes Specify the text/symbol/special characters by which the row text has to be separated.

Output

 

True

If the keyword passes successfully

False

If an error is there

Example

URL

Comments

https://en.wikipedia.org/wiki/List_of_Bollywood_films_of_2017

Keywords.jpg

This keyword fetches all the text of table in column wise separated by delimiter.  

In the example above, all the text of table in row wise is separated by delimiter using keyword GetAllColumnText  as shown below:

GetAllColumnText

Object <   Choose your table Object From OR   >
Row Delimeter < ; >
Column Delimeter < ; >

Common Error conditions

Scenarios

Error Message

Debug Information

When no object is provided

Argument Data Missing (-13200)

DESCRIPTION:

A step could not be executed because one or more of the arguments have not been provided a value. Of all the arguments a keyword accepts, some arguments might be compulsory. As opposed to the non-compulsory ones, the compulsory argument must be provided some data. The data may be provided through one of many sources like statically entering, output of a previous step, a global variable etc; but it must not be left blank.

Data not provided for argument: ‘Object’. Expected Static Value was empty.

When Invalid object and blank Data Input Arguments are provided.

 

Object : Table

Argument Data Invalid (-13300)

DESCRIPTION:

The data value for one or more input arguments was not what was expected. This might happen when the input is expected in a specific format or should be chosen from a predefined set of values. Check for spell errors and capsing

Arguments  🙁 Row Delimiter; Column Delimiter) is/are blank.

GetAllFields

This keyword returns Name/ID/innertext property of all available Fields of current page. This keyword does not takes any input parameter.

This keyword is mostly used in situations where you want to get all the fields available on a particular web page. For example, you want to get all the fields available on a specified webpage.

Input Arguments

Object Input Arguments

Required?

Description

Object

No

This keyword doesn’t take any object input argument.

Data Input Arguments

Required?

Description

No

No

This keyword doesn’t take any data input argument.

Output

 

True

If the keyword passes successfully

False

If an error is there

Example

For example, you want to get all the fields available on specified webpage, here is how you will use this keyword:

Common Error conditions

Scenarios

Error Message

Debug Information

If  no browser is given

Insufficient Privileges

Either Browser was never Opened  or all WebDriver instances were closed

GetAllLinks

This keyword returns Name/ID/innertext property of all available Links of current page. This keyword does not takes any input parameter.

This keyword is mostly used in situations where you want to get all the links available on a particular webpage.

For example, you want to get all the links available on a specified webpage at the same time.

Input Arguments

Object Input Arguments

Required?

Description

Object

No

This keyword doesn’t take any object input argument.

Data Input Arguments

Required?

Description

No

No

This keyword doesn’t take any data input argument.

Output

 

True

If the keyword passes successfully

False

If an error is there

Example

For example, you want to get all the links available on specified, here is how you will use this keyword:

Common Error conditions

Scenarios

Error Message

Debug Information

If  no browser is given

Insufficient Privileges

Either Browser was never Opened  or all WebDriver instances were closed

GetAllRowText

This keyword fetches all the text of table row wise, separated by delimiter. It takes table object, row delimiter and column delimiter as input parameters.

Input Arguments

Object Input Arguments

Required?

Description

Object

Yes

This keyword takes one table object Input argument. You can choose table object from your Object Repository.

Data Input Arguments

Required?

Description

Column Delimiter

Yes

Specify the text/symbol/special characters by which the column text has to be separated.

Row

Delimiter

Yes Specify the text/symbol/special characters by which the row text has to be separated.

Output

True

If the keyword passes successfully

False

If an error is there

Example

URL

Comments

https://en.wikipedia.org/wiki/List_of_Bollywood_films_of_2017

Keywords.jpg

This keyword fetches all the text of table in row wise separated by delimiter.  

In the example above, all the text of table in row wise is separated by delimiter using keyword GetAllRowText  as shown below:

GetAllRowText

Object <   Choose your table Object From OR   >
Row Delimeter < ; >
Column Delimeter < ; >

Common Error conditions

Scenarios

Error Message

Debug Information

When no object is provided

Argument Data Missing (-13200)

DESCRIPTION:

A step could not be executed because one or more of the arguments have not been provided a value. Of all the arguments a keyword accepts, some arguments might be compulsory. As opposed to the non-compulsory ones, the compulsory argument must be provided some data. The data may be provided through one of many sources like statically entering, output of a previous step, a global variable etc; but it must not be left blank.

Data not provided for argument: ‘Object’. Expected Static Value was empty.

When Invalid object and blank Data Input Arguments are provided.

 

Object : Table

Argument Data Invalid (-13300)

DESCRIPTION:

The data value for one or more input arguments was not what was expected. This might happen when the input is expected in a specific format or should be chosen from a predefined set of values. Check for spell errors and capsing

Arguments  🙁 Row Delimiter; Column Delimiter) is/are blank.

GetAllTitles

This keyword gets the titles of all opened webpages of specified browser. This keyword takes BrowserName as input parameter.

This keyword is mostly used in situations where you want to get all the title name available on a particular browser.

For example, choose a website on which there are multiple links and on clicking those links a new tab is opened and here you can use this keyword to get all the name of title of the tabs which are opened.

Input Arguments

Object Input Arguments

Required?

Description

Object

No

This keyword doesn’t take any object input argument.

Data Input Arguments

Required?

Description

Browser Name

Yes

Specify the name of browser.

Note: Give the name of the browser which is getting opened.

Output

 

True

If the keyword passes successfully

False

If an error is there

Example

Here, choose a website with one or more than one link and on clicking those links a new tab is opened and now you can use this keyword to get all the name of title of the tabs which are opened. In the output, you will see the name of both the title.

Common Error conditions

Scenarios

Error Message

Debug Information

If  no browser is given

Insufficient Privileges

Either Browser was never Opened  or all WebDriver instances were closed

GetButtonToolTip

This keyword gets the Tooltip available in specified Button. This keyword takes Button object as input parameter. This keyword is mostly used in situations where you want to get the tool tip of a button.

For example, you want to know the tooltip of a specific button available on the webpage.

Input Arguments

Object Input Arguments

Required?

Description

Object

Yes

This Keyword takes one object input argument. You can choose the object from your Object Repository.

Data Input Arguments

Required?

Description

No

No

This keyword doesn’t take any data input argument.

Output

 

True

If the keyword passes successfully

False

If an error is there

Example

In the example above, you want to know the tooltip of a specific button available on the webpage, here is how you will use this keyword:

GetButtonToolTip

Object <   Choose Object From OR   >

Common Error conditions

Scenarios

Error Message

Debug Information

If  no browser is given

Insufficient Privileges (-14100)

Either Browser was never Opened  or all WebDriver instances were closed

If  no object is given Argument Data Missing Data not provided for argument: ‘Object’. Expected StaticValue was empty.

GetCheckBoxStatus

This keyword gets the status (ON/OFF) of the checkbox. This keyword takes OR object as input parameter.

This keyword is mostly used in situations where you want to know the status of checkbox whether it is ON/OFF.

For example, you can get the checkbox status whether it is ON/OFF.

Input Arguments

Object Input Arguments

Required?

Description

Object

Yes

This Keyword takes one object input argument. You can choose the object from your Object Repository.

Data Input Arguments

Required?

Description

No

No

This keyword doesn’t take any data input argument.

Output

 

True

If the keyword passes successfully

False

If an error is there

Example

In the example above, you can get the checkbox status whether it is ON/OFF, here is how you will use this keyword:

GetCheckBoxStatus

Object <   Choose Object From OR   >

Common Error conditions

Scenarios

Error Message

Debug Information

If  no object is given

Argument Data Missing

Data not provided for argument: ‘Object’. Expected StaticValue was empty.

GetCheckBoxToolTip

This keyword gets the Tooltip available in specified Checkbox. This keyword takes Checkbox object as input argument.

Input Arguments

Object Input Arguments

Required?

Description

Object

Yes

This keyword takes checkbox object as object input argument.

Data Input Arguments

Required?

Description

No

No

This keyword doesn’t take any data input argument.

Output

 

True

If the keyword passes successfully

False

If an error is there

Example

Image

Comments

CheckBox Tooltip.png.jpg

This keyword gets the Tooltip available in specified Checkbox

GetCheckBoxToolTip

Object <   Choose Object From OR   >

Common Error conditions

Scenarios

Error Message

Debug Information

When object is not given.

Browser: Mozilla Firefox

URL: https://cresconnect.crestechglobal.com/index.php?

Object: No Object

Argument Data Missing (-13200)

Either Browser was never Opened  or all WebDriver instances were closed

When Browser name & URL are not given

Browser:

URL:

Object: Given

Argument Data Missing (-13200)

Insufficient Privileges (-14100)

Argument(s): (Browser,URL) are blank

Either Browser was never Opened  or all WebDriver instances were closed

-plugin-unable-to-take-screenshot-

GetChildObjectCount

This keyword gets the count of child items of Specified object. This keyword takes parent object and Tag, Property name and property value of Child object.

This keyword is mostly used in situations where you want to know the number of child objects present in parent object.

For example, you want to know the number of child object available in parent.

Input Arguments

Object Input Arguments

Required?

Description

Object

Yes

This Keyword takes one object input argument. You can choose the object from your Object Repository.

Data Input Arguments

Required?

Description

Tag

Yes

Specify Object Tag.

Note: Give the Tag value of parent object.

Property Name  Yes

Specify Property Name.

Note: Give the Property name of parent object.

Property Value         Yes

Specify Property Value.

Note: Give the Property value of parent object.

Output

 

True

If the keyword passes successfully

False

If an error is there

Example

In the example above, you want to know the number of child objects available in parent object and in the output it will give you the count as how many child objects are there in a particular parent object, here is how you will use this keyword:

GetChildObjectCount

Object <   Choose your Parent Object From OR   >
Tag < Give the Tag value of parent object >
Property Name <   Give the Property name of parent object  >
Property Value < Give the Property value of parent object >

Common Error conditions

Scenarios

Error Message

Debug Information

If  no browser is given

Insufficient Privileges (-14100)

Either Browser was never Opened  or all WebDriver instances were closed

If  no object is given Argument Data Missing Data not provided for argument: ‘Object’. Expected StaticValue was empty.

GetCompleteTableText

This keyword is used to fetch the full table text present in the table object.

This keyword is mostly used in situations where you want to get the full text/content which is present in the table. It takes table object as object input Argument.

Input Arguments

Object Input Arguments

Required?

Description

Object

Yes

This keyword takes one object input argument. You can choose the table object from your Object Repository.

Data Input Arguments

Required?

Description

No

No

This keyword doesn’t take any data input argument.

Output

 

True

If the keyword passes successfully

False

If an error is there

Example

In the above example, if user want to get the full text present in the table then user can use this keyword.

fulltabletext

GetCompleteTableText

Object <   Choose your Table Object From OR   >

NOTE: If user want to get the full text of table object then, open any browser (along with specified URL of your web application) and use this keyword “GetFullTableText” and it will provide “Full text of table” as its output.

Common Error conditions

Scenarios

Error Message

Debug Information

If user provide invalid table

Object Not Found

(-11100)

Object Not Found

If user does not provide any object.

Argument Data Missing (-13200)

Data not provided for argument: ‘Object’. Expected StaticValue was empty.

GetDropDownDefaultItem

This Keyword returns the item selected by default in the dropdown list. It takes drop down object as Object Input Argument.

Input Arguments

Object Input Arguments

Required?

Description

Object

Yes

This keyword takes Drop down object as Object Input Arguments.

Data Input Arguments

Required?

Description

Data

No

This keyword doesn’t take any data input argument.

Output

 

< Default Item >

If the keyword passes successfully

It does not displays anything if the keyword fails

Example

URL

Comments

URL:https://en-gb.facebook.com/r.php?locale=en_GB

IMAGE:

This Keyword returns the item selected by default in the dropdown list.

In the above screenshot, if you wish to get the item selected by default in the Birthday Dropdown then you can use the Keyword “GetDropdownDefaultItemas follows:

GetDropdownDefaultItem

Object <  Choose  Dropdown Object from the Object Repository  >

Common Error conditions

Scenarios

Error Message

Debug Information

If Keyword is not mapped with any object

Argument Data Missing (-13200)

DESCRIPTION:

A step could not be executed because one or more of the arguments have not been provided a value. Of all the arguments a keyword accepts, some arguments might be compulsory. As opposed to the non-compulsory ones, the compulsory argument must be provided some data. The data may be provided through one of many sources like statically entering, output of a previous step, a global variable etc; but it must not be left blank.

Data not provided for argument: ‘Object’. Expected StaticValue was empty.

If Keyword is mapped with Wrong object

Object Not Found (-11100)

DESCRIPTION:

The object on which an action was supposed to be performed, was not found on the currently active page or view. This happens when the page is not properly loaded or the properties of the object are not exactly matched.

Object Not Found

GetDropDownItemCount

This keyword gets the total item count of specified dropdown. This keyword takes a dropdown object as input parameter.

This keyword is mostly used in situations where you want to know the number of items in dropdown.

For example, you want to know the number of items available in dropdown list.

Input Arguments

Object Input Arguments

Required?

Description

Object

Yes

This Keyword takes one object input argument. You can choose the object from your Object Repository.

Data Input Arguments

Required?

Description

No

No

This keyword doesn’t take any data input argument.

Output

 

True

If the keyword passes successfully

False

If an error is there

Example

In the example above, you want to know the number of items available in dropdown list and in the output it will give you the count as how many items are there in a particular drop down list, here is how you will use this keyword:

GetDropDownItemCount

Object <   Choose your DropDown Object From OR    >

Common Error conditions

Scenarios

Error Message

Debug Information

If  no browser is given

Insufficient Privileges

Either Browser was never Opened or all WebDriver instances were closed.
If  no object is given

Argument Data Missing

Data not provided for argument: ‘Object’. Expected StaticValue was empty.
If object is different Object Not Found Object Not Found

GetDropDownToolTip

This keyword is used to get the text displayed in the tool tip of a drop down object.

This keyword is mostly used in situations where you need to get the tool tip text of a drop down object available on that web page.

Input Arguments

Object Input Arguments

Required?

Description

Object

Yes

This keyword takes one object input argument. You can choose the drop down object from your Object Repository.

Data Input Arguments

Required?

Description

No

No

This keyword doesn’t take any data input argument.

Output

 

True

If the keyword passes successfully

False

If an error is there

Example

dropdowntooltip

In the above example, if user want to know tool tip text present on the drop down object “class” under the Domestic Flight Search then user can use this keyword.

GetDropDownToolTip

Object <   Choose your DropDown Object From OR   >

NOTE: If user want to get the tool tip text available on the drop down object then, open any browser (along with specified URL of your web application) and then use this keyword “GetDropDownToolTip” and it will provide “Tool tip Name” as its output.

Common Error conditions

Scenarios

Error Message

Debug Information

If user provide invalid object.

Argument Data Invalid (-13300)

Specified object is not drop down

If user provide null object. Argument Data Missing (-13200) Data not provided for argument: ‘Object’. Expected StaticValue was empty.

GetEditBoxDefaultValue

This Keyword  fetches the default value edit box type object. It takes OR object as object input argument.

Input Arguments

Object Input Arguments

Required?

Description

Object

Yes

This keyword takes one EditBox Type object Input argument. You can choose EditBox object from your Object Repository.

Data Input Arguments

Required?

Description

No

No

This keyword doesn’t take any data input argument.

Output

 

True

If the keyword passes successfully

False

If an error is there

Example

URL

Comments

https://www.december.com/html/3.2/element/textarea.html

My exe.jpg

This keyword  fetches the default value of the edit box type object.

In the above example we need to default value of the edit box “Your Name” by using  GetEditBoxDefaultValue keyword  as shown below:

GetEditBoxDefaultValue

Object <   Choose your EditBox object from OR   >

Common Error conditions

Scenarios

Error Message

Debug Information

When no object is provided

IArgument Data Missing (-13200)

 

DESCRIPTION:

A step could not be executed because one or more of the arguments have not been provided a value. Of all the arguments a keyword accepts, some arguments might be compulsory. As opposed to the non-compulsory ones, the compulsory argument must be provided some data. The data may be provided through one of many sources like statically entering, output of a previous step, a global variable etc; but it must not be left blank.

Data not provided for argument: ‘Object’. Expected Static Value was empty.

When blank object  Input Arguments are provided.

Verification Failed (-16100)

 

DESCRIPTION:

The value which is required, was not found on the currently active page or view.

Data not provided for argument: ‘Object’. Expected StaticValue was empty

GetEditBoxLength

This Keyword fetches the length of  the specified edit box  object on the web page. It takes edit box type object as input parameter.

Input Arguments

Object Input Arguments

Required?

Description

Object

Yes

This keyword takes one EditBox Type object Input argument. You can choose EditBox object from your Object Repository.

Data Input Arguments

Required?

Description

No

No

This keyword doesn’t take any data input argument.

Output

 

True

If the keyword passes successfully

False

If an error is there

Example

URL

Comments

https://www.december.com/html/3.2/element/textarea.html

My exe.jpg

This keyword  fetches the length of a  Edit box object on the web page.

In the above example we need to find the length of the edit box  “Your Name” on the web page, we can do so by using “GetEditBoxLength” keyword  as shown below:

GetEditBoxLength

Object <   Choose your EditBox object from OR   >

Common Error conditions

Scenarios

Error Message

Debug Information

When no object is provided

IArgument Data Missing (-13200)

 

DESCRIPTION:

A step could not be executed because one or more of the arguments have not been provided a value. Of all the arguments a keyword accepts, some arguments might be compulsory. As opposed to the non-compulsory ones, the compulsory argument must be provided some data. The data may be provided through one of many sources like statically entering, output of a previous step, a global variable etc; but it must not be left blank.

Data not provided for argument: ‘Object’. Expected Static Value was empty.

when Object other than Editbox is provided

Unsupported Operation (-11400)

DESCRIPTION:

An operation was attempted, but the target of the operation does not support that. An analogy could be like typing on a button. Here button is the target of type operation, which it does not support. It supports clicking. While it is mostly a permanent disability, at times it could be temporary. For example browser’s Go-Back feature is unsupported while the very first page is loaded. But as soon as the browser navigates to some other page, the feature gets enabled.

Property Not found.

GetEditBoxName

This keyword is used to fetch the name property of the edit box name object.

This keyword is mostly used in situations where you need to get the name property exists on the edit box on that web page or not.

Input Arguments

Object Input Arguments

Required?

Description

Object

Yes

This keyword takes one object input argument. You can choose the edit name box object from your Object Repository..

Data Input Arguments

Required?

Description

No

No

This keyword doesn’t take any data input argument.

Output

 

True

If the keyword passes successfully

False

If an error is there

Example

editboxname

In the above example, if user want to get name property of edit box object then user can use this keyword.

GetEditBoxName

Object <   Choose your EditBox Object From OR   >

NOTE: If user want to get the name property of edit name box then, open any browser (along with specified URL of your web application) and use this keyword “GetEditNameBox” and it will provide “Name box property” as its output.

Common Error conditions

Scenarios

Error Message

Debug Information

If user provide invalid object

Object Not Found (-11100)

Object Not Found

If user provide null object. Argument Data Missing (-13200) Data not provided for argument: ‘Object’. Expected StaticValue was empty.

GetEditBoxToolTip

This keyword is used to get the text displayed in the tool tip of the edit box. This keyword is mostly used in situations where you need to get tool tip text of the edit box on that web page or not.

Input Arguments

Object Input Arguments

Required?

Description

Object

Yes

This keyword takes one object input argument. You can choose the edit box object from your Object Repository.

Data Input Arguments

Required?

Description

No

No

This keyword doesn’t take any data input argument.

Output

 

True

If the keyword passes successfully

False

If an error is there

Example

editnameboxtooltip

In the above example, if user want to get the tool tip text of the edit box then user can use this keyword.

GetEditToolTip

Object <   Choose your EditBox Object From OR   >

NOTE: If user want to get the tool tip text of edit box then, open any browser (along with specified URL of your web application) and use this keyword “GetEditBoxToolTip” and it will provide “Tool tip name” as its output.

Common Error conditions

Scenarios

Error Message

Debug Information

If user provide invalid object.

Object Not Found (-11100)

Object Not Found

If user provide null object. Argument Data Missing (-13200) Data not provided for argument: ‘Object’. Expected StaticValue was empty.

GetEditBoxValue

This keyword gets the object value from textarea. This keyword takes OR object as object input argument. This keyword is mostly used in situations where you want to get the value which is written inside the edit box. For example, you want to get the value which is written inside the Edit box.

Input Arguments

Object Input Arguments

Required?

Description

Object

Yes

This Keyword takes one object input argument. You can choose the object from your Object Repository.

Data Input Arguments

Required?

Description

No

No

This keyword doesn’t take any data input argument.

Output

 

True

If the keyword passes successfully

False

If an error is there

Example

In the example above, you want to get the value which is written inside the Edit box, here is how you will use this keyword:

GetEditBoxValue

Object <   Choose your EditBox Object From OR   >

Common Error conditions

Scenarios

Error Message

Debug Information

If  no object is given

Argument Data Missing

Data not provided for argument: ‘Object’. Expected StaticValue was empty.

GetElementIndex

This Keyword fetches the index of a  specified element on the web page. It takes object as object input argument.

Input Arguments

Object Input Arguments

Required?

Description

Object

Yes

This keyword takes one object Input argument. You can choose Object from your Object Repository.

Data Input Arguments

Required?

Description

No

No

This keyword doesn’t take any data input argument.

Output

 

True

If the keyword passes successfully

False

If an error is there

Example

URL

Comments

https://en.wikipedia.org/wiki/List_of_Bollywood_films_of_2017

1.jpg

This keyword  fetches the index of a  specified element on the web page.

GetElementIndex

Object

< Choose your Object from the OR >

Common Error conditions

Scenarios

Error Message

Debug Information

When no object is provided

Argument Data Missing (-13200)

DESCRIPTION:

A step could not be executed because one or more of the arguments have not been provided a value. Of all the arguments a keyword accepts, some arguments might be compulsory. As opposed to the non-compulsory ones, the compulsory argument must be provided some data. The data may be provided through one of many sources like statically entering, output of a previous step, a global variable etc; but it must not be left blank

Data not provided for argument: ‘Object’. Expected Static Value was empty.

When invalid  object  Input Arguments is provided

Unsupported Operation (-11400)

 

DESCRIPTION:

An operation was attempted, but the target of thet operation does not support that. An analogy could be like typing on a button. Here button is the target of type operation, which it does not support. It supports clicking. While it is mostly a permanent disability, at times it could be temporary. For example browser’s Go-Back feature is unsupported while the very first page is loaded. But as soon as the browser navigates to some other page, the feature gets enabled.

Property Not Found

GetFullTableText

This keyword is used to fetch the full table text present in the table object. This keyword is mostly used in situations where you get the full text/content which is present in the table.

Input Arguments

Object Input Arguments

Required?

Description

Object

Yes

This keyword takes one object input argument. You can choose the table object from your Object Repository.

Data Input Arguments

Required?

Description

No

No

This keyword doesn’t take any data input argument.

Output

 

True

If the keyword passes successfully

False

If an error is there

Example

fulltabletext

In the above example, if user want to get the full text present in the table then user can use this keyword.

GetFullTableText

Object <   Choose your Table Object From OR   >

NOTE: If user want to get the full text of table object then, open any browser (along with specified URL of your web application) and use this keyword “GetFullTableText” and it will provide “Full text of table” as its output.

Common Error conditions

Scenarios

Error Message

Debug Information

If user provide invalid table object

Object Not Found (-11100)

Object Not Found

If user provide null image object. Argument Data Missing (-13200) Data not provided for argument: ‘Object’. Expected StaticValue was empty.

GetImageCount

This keyword returns the number of images present on the current web page. It does not takes any object or data input arguments.

Input Arguments

Object Input Arguments

Required?

Description

Object

No

This keyword doesn’t take any object input argument.

Data Input Arguments

Required?

Description

Data

No

This keyword doesn’t take any data input argument.

Output

 

If the keyword passes successfully

0

If an error is there

Example

URL

Comments

 URL: https://www.question.com/

This keyword returns the count of images present on specified page.

For the above URL, if you wish to find   the number of images on the web page then you can use “GetItemCountkeyword along with Open Browser.

Common Error conditions

Scenarios

Error Message

Debug Information

When browser was never opened or the keyword is used without launching web-page on browser

Insufficient Privileges (-14100)

DESCRIPTION:

The system does not have sufficient privileges to carry out a particular task. This mostly happens when the currently logged-in user at the execution site does not have permission to access a particular resource. The protected resource may be a network share, folder or a drive. User may contact the system administrator to sort out the issue.

Either Browser was never Opened  or all WebDriver instances were closed

GetImageToolTip

This keyword is used to get the text displayed in the tool tip of the image object. This keyword is mostly used in situations where you need to get tool tip text exists on the image object on that web page or not.

Input Arguments

Object Input Arguments

Required?

Description

Object

Yes

This keyword takes one object input argument. You can choose the image type object from your Object Repository.

Data Input Arguments

Required?

Description

No

No

This keyword doesn’t take any data input argument.

Output

 

True

If the keyword passes successfully

False

If an error is there

Example

imagetooltip

In the above example, if user want to get the tool tip text of the image object then user can use this keyword.

GetImageToolTip

Object <   Choose your Image Object From OR   >

NOTE: If user want to get the tool tip text of image object then, open any browser (along with specified URL of your web application) and use this keyword “GetImageToolTip” and it will provide “Tool tip name” as its output.

Common Error conditions

Scenarios

Error Message

Debug Information

If user provide invalid image object.

Object Not Found

Object Not Found

If user provide null image object. Argument Data Missing (-13200) Data not provided for argument: ‘Object’. Expected StaticValue was empty.

GetLinkCount

This keyword is used to get the count of links available on current web page. It does not require any input argument.

Input Arguments

Object Input Arguments

Required?

Description

Object

No

This keyword doesn’t take any object input argument.

Data Input Arguments

Required?

Description

No

No

This keyword doesn’t take any data input argument.

Output

 

True

If the keyword passes successfully

False

If an error is there

Example

If the user want to know count of the links available on the google.com home page then user can use this keyword.

NOTE: If user want to get the count of links available on a particular web page then, open any browser (along with specified URL of your web application) and use this keyword “GetLinkCount” and it will provide “No. of link count” as its output.

Common Error conditions

Scenarios

Error Message

Debug Information

If user do not provide open browser

Insufficient Privileges

Either Browser was never Opened  or all WebDriver instances were closed

GetLinkToolTip

This keyword is used to get the text displayed in the tool tip of the link which is available on web page.

This keyword is mostly used in situations where you need to get the link tool tip text which is available on that web page or not.

Input Arguments

Object Input Arguments

Required?

Description

Object

Yes

This keyword takes one object input argument. You can choose the table object from your Object Repository within which you want to click on the link.

Data Input Arguments

Required?

Description

No

No

This keyword doesn’t take any data input argument.

Output

 

True

If the keyword passes successfully

False

If an error is there

Example

C:Usersharshit.agarwalAppDataLocalMicrosoftWindowsINetCacheContent.Wordlinktooltip.jpg

In the above example, if user want to know tool tip present on the links available on website www.zoomtra.com user can hover the mouse over the link then.

GetLinkToolTip

Object <   Choose your Link Object From OR   >

NOTE: If user want to get the tool tip text of links available on web page then, open any browser (along with specified URL of your web application) and use this keyword “GetLinkToolTip” and it will provide “Tool tip Name” as its output.

Common Error conditions

Scenarios

Error Message

Debug Information

If user provide invalid object

Object Not Found (-11100)

Given set of object properties are not sufficient to locate any webelement

If user provide null object. Argument Data Missing (-13200) Data not provided for argument: ‘Object’. Expected StaticValue was empty.

GetObjectCount

This keyword gets the count of objects found with the given properties. It takes Property Name and Property Value as data input argument. This keyword is mostly used in situations where you want to search for an object with specific properties.

For example, you want to know the number of objects available with the given properties.

Input Arguments

Object Input Arguments

Required?

Description

Object

No

This keyword doesn’t take any object input argument.

Data Input Arguments

Required?

Description

Property Name

Yes

Specify Property Name.

Property

  Value

 Yes  Specify Property Value.

Output

 

True

If the keyword passes successfully

False

If an error is there

Example

URL

Comments

https://cresconnect.crestechglobal.com/

1.jpg

This keyword gets the count of objects found with the given properties.

In the above example, you want to know the number of objects available with the properties mentioned in the Data input arguments. Here is how you will use this keyword:

GetObjectCount

 

Property Name

<   Give the Property name of object  > Here,  Type

Property Value

Here, Submit

Common Error conditions

Scenarios

Error Message

Debug Information

If  no browser is given

Insufficient Privileges (-14100)

DESCRIPTION:

The system does not have sufficient privileges to carry out a particular task. This mostly happens when the currently logged-in user at the execution site does not have permission to access a particular resource. The protected resource may be a network share, folder or a drive. User may contact the system administrator to sort out the issue.

Either Browser was never Opened  or all WebDriver instances were closed

If Invalid Data Input Arguments is provided No object found by the given properties

GetObjectCSSProperty

This Keyword fetches the CSS property  of a  specified Object on the web page. It takes object as object input argument and property as data input argument.

Input Arguments

Object Input Arguments

Required?

Description

Object

Yes

This keyword takes one object Input argument. You can choose Object from your Object Repository.

Data Input Arguments

Required?

Description

Property

Yes

Specify Property Name.

Give the Property name of parent object.

Output

 

True

If the keyword passes successfully

False

If an error is there

Example

URL

Comments

https://en.wikipedia.org/wiki/List_of_Bollywood_films_of_2017

1.jpg

This keyword  fetches the CSS Property of  specified Object on the web page.

In the above example we require to fetch the CSS property of the  “Title” Object on the web page, we can do so by using “GetObjectCSSProperty” keyword  as shown below:

GetObjectCSSProperty

Object

< Choose your Object From OR >

Property

< CSS >

Common Error conditions

Scenarios

Error Message

Debug Information

When no object is provided

Argument Data Missing (-13200)

DESCRIPTION:

A step could not be executed because one or more of the arguments have not been provided a value. Of all the arguments a keyword accepts, some arguments might be compulsory. As opposed to the non-compulsory ones, the compulsory argument must be provided some data. The data may be provided through one of many sources like statically entering, output of a previous step, a global variable etc; but it must not be left blank.

Data not provided for argument: ‘Object’. Expected Static Value was empty.

When blank object and valid Data  Input Arguments is provided

Argument Data Missing (-13200)

 

DESCRIPTION:

A step could not be executed because one or more of the arguments have not been provided a value. Of all the arguments a keyword accepts, some arguments might be compulsory. As opposed to the non-compulsory ones, the compulsory argument must be provided some data. The data may be provided through one of many sources like statically entering, output of a previous step, a global variable etc; but it must not be left blank.

Data not provided for argument: ‘Object’. Expected Static Value was empty.

GetObjectEnabled

This keyword returns whether the specified object is enabled or not. This keyword can be used to get the status of web element before performing any action on it.

Input Arguments

Object Input Arguments

Required?

Description

Object

No

This Keyword takes one object input argument. You can choose web element from your Object Repository

Data Input Arguments

Required?

Description

No

No

This keyword doesn’t take any data input argument.

Output

 

True

If the keyword passes successfully

False

If an error is there

Example

If you want to get the status of an object, here is how you will use this keyword –

  • Add OpenBrowser and provide URL https://global.blackberry.com/en/enterprise/contact-us.html

  • Add GetObjectEnabled keyword

  • Map the object from OR to get the status

Common Error conditions

Scenarios

Error Message

Debug Information

Blank object

Argument Data Missing

Data not provided for argument: ‘Object’

GetObjectExistence

This keyword returns whether the specified object exists in DOM. This keyword can be used to get the existence of web element before performing any action on it.

Input Arguments

Object Input Arguments

Required?

Description

Object

No

This Keyword takes one object input argument. You can choose web element from your Object Repository

Data Input Arguments

Required?

Description

No

No

This keyword doesn’t take any data input argument.

Output

 

True

If the keyword passes successfully

False

If an error is there

Example

If you want to get the existence of an object, here is how you will use this keyword –

  • Add OpenBrowser and provide URL https://global.blackberry.com/en/enterprise/contact-us.html

  • Add GetObjectExistence keyword

  • Map the object from OR

Common Error conditions

Scenarios

Error Message

Debug Information

Blank object

Argument Data Missing.

Data not provided for argument: ‘Object’.

GetObjectHeightWidth

This Keyword returns the Height Width of a specified object on the web page. It takes object as object input argument.

Input Arguments

Object Input Arguments

Required?

Description

Object

Yes

This keyword takes one object Input argument. You can choose Object from your Object Repository.

Data Input Arguments

Required?

Description

No

No

This keyword doesn’t take any data input argument.

Output

 

True

If the keyword passes successfully

False

If an error is there

Example

URL

Comments

https://en.wikipedia.org/wiki/List_of_Bollywood_films_of_2017

1.jpg

This keyword  fetches the Height width of a  specified object on the web page.

In the above example we need to find the height width of the “Title” element on the web page, we can do so by using “GetObjectHeightWidth” keyword  as shown below:

GetObjectHeightWidth

Object

< Choose your Object From OR >

Common Error conditions

Scenarios

Error Message

Debug Information

When no object is provided

Argument Data Missing (-13200)

DESCRIPTION:

A step could not be executed because one or more of the arguments have not been provided a value. Of all the arguments a keyword accepts, some arguments might be compulsory. As opposed to the non-compulsory ones, the compulsory argument must be provided some data. The data may be provided through one of many sources like statically entering, output of a previous step, a global variable etc; but it must not be left blank.

Data not provided for argument: ‘Object’. Expected Static Value was empty.

If keyword is used without launching web-page on browser.

Insufficient Privileges

Either Browser was never Opened or all WebDriver instances were closed.

GetObjectProperty

This Keyword fetches the specified property of an Object on the web page. It takes object as object input argument and property name as data input argument.

Input Arguments

Object Input Arguments

Required?

Description

Object

Yes

This keyword takes one object Input argument. You can choose Object from your Object Repository.

Data Input Arguments

Required?

Description

Property

Yes

Specify Property Name.

Give the Property name of parent object.

Output

 

True

If the keyword passes successfully

False

If an error is there

Example

URL

Comments

https://en.wikipedia.org/wiki/List_of_Bollywood_films_of_2017

1.jpg

This keyword  fetches the specified property of an object on the web page.

In the above example we require to fetch the specified property of the  “Title” Object on the web page, we can do so by using “GetObjectProperty” keyword  as shown below:

GetObjectProperty

Object

< Choose your Object From OR >

Property

< CSS >

Common Error conditions

Scenarios

Error Message

Debug Information

When no object is provided

Argument Data Missing (-13200)

DESCRIPTION:

A step could not be executed because one or more of the arguments have not been provided a value. Of all the arguments a keyword accepts, some arguments might be compulsory. As opposed to the non-compulsory ones, the compulsory argument must be provided some data. The data may be provided through one of many sources like statically entering, output of a previous step, a global variable etc; but it must not be left blank.

Data not provided for argument: ‘Object’. Expected Static Value was empty.

When blank object and valid Data  Input Arguments is provided

Argument Data Missing (-13200)

 

DESCRIPTION:

A step could not be executed because one or more of the arguments have not been provided a value. Of all the arguments a keyword accepts, some arguments might be compulsory. As opposed to the non-compulsory ones, the compulsory argument must be provided some data. The data may be provided through one of many sources like statically entering, output of a previous step, a global variable etc; but it must not be left blank.

Data not provided for argument: ‘Object’. Expected Static Value was empty.

GetObjectText

This keyword returns the text of the specified object. It takes object input argument and Before & After as data input argument. Before/After is not case-sensitive.

Input Arguments

Object Input Arguments

Required?

Description

Object

Yes

This keyword takes Object from OR as object input argument whose text has to be fetched.

Data Input Arguments

Required?

Description

Before

No

This keyword doesn’t take any data input argument.

After No Specify the Text after the Object specified.

Output

 

It returns the text of the specified object.

If the keyword passes successfully

False

If an error is there

Example

URL

Comments

https://www.irctc.co.in/eticketing/loginHome.jsf

1.jpg

This keyword returns the text of the specified object.

In the above screenshot, if you wish to fetch the text of the “Login” object  then you can use “GetObjectText”  keyword as follows:

GetObjectText

Object <   Choose an Object From OR   >
Before
After

Common Error conditions

Scenarios

Error Message

Debug Information

When Invalid Object is provided

Object Not Found (-11100)

DESCRIPTION:

The object on which an action was supposed to be performed, was not found on the currently active page or view. This happens when the page is not properly loaded or the properties of the object are not exactly matched.

Object not Found

When no Object is attached

Argument Data Missing (-13200)

DESCRIPTION:

A step could not be executed because one or more of the arguments have not been provided a value. Of all the arguments a keyword accepts, some arguments might be compulsory. As opposed to the non-compulsory ones, the compulsory argument must be provided some data. The data may be provided through one of many sources like statically entering, output of a previous step, a global variable etc; but it must not be left blank.

Data not provided for argument: ‘Object’. Expected StaticValue was empty.

GetObjectToolTip

This keyword returns tooltip of the specified object. This keyword can be used to get the tooltip of web element before performing any action on it. Output of this keyword can also be used as input of VerifyObjectToolTip.

Input Arguments

Object Input Arguments

Required?

Description

Object

Yes

This Keyword takes one object input argument. You can choose web element from your Object Repository.

Data Input Arguments

Required?

Description

No

No

This keyword doesn’t take any data input argument.

Output

 

True

If the keyword passes successfully

False

If an error is there

Example

If you want to get the tooltip of an object, here is how you will use this keyword –

  • Add OpenBrowser and provide URL https://global.blackberry.com/en/enterprise/contact-us.html

  • Add GetObjectToolTip keyword

  • Map the object from OR to get the status

Common Error conditions

Scenarios

Error Message

Debug Information

Blank object

Argument Data Missing

Data not provided for argument: ‘Object’

GetObjectValue

This keyword returns value of the specified object. This keyword can be used to get the value of web element after action is performed.

Input Arguments

Object Input Arguments

Required?

Description

Object

Yes

This Keyword takes one object input argument. You can choose web element whose value you want to get from your Object Repository.

Data Input Arguments

Required?

Description

No

No

This keyword doesn’t take any data input argument.

Output

 

True

If the keyword passes successfully

False

If an error is there

Example

If you want to get the value of an object, here is how you will use this keyword –

  • Add OpenBrowser and provide URL https://global.blackberry.com/en/enterprise/contact-us.html

  • Add GetObjectValue keyword

  • Map the object from OR to get the status

Common Error conditions

Scenarios

Error Message

Debug Information

Invalid object

Done

–Blank–

Blank object Argument Data Missing Data not provided for argument: ‘Object’.

GetObjectVisibility

This keyword returns whether the object is visible or not. This keyword takes OR object name as input argument.

Input Arguments

Object Input Arguments

Required?

Description

Object

No

This keyword takes an object as object input argument.

Data Input Arguments

Required?

Description

No

No

This keyword doesn’t take any data input argument.

Output

 

True

If the keyword passes successfully

False

If an error is there

Example

URL

Comments

https://www.idbi.com/newautoloan.asp

This keyword returns whether the object is visible or not.

Common Error conditions

Scenarios

Error Message

Debug Information

When object is not given.

Browser: Mozilla Firefox

URL: https://www.idbi.com/newautoloan.asp

Object: Given

Argument Data Missing (-13200)

Either Browser was never Opened  or all WebDriver instances were closed

When URL & browser name are not given.

Browser:

URL:

Object: No Object

Argument Data Missing (-13200) Data not provided for argument: ‘Object’. Expected StaticValue was empty.

Getpopuptext

This keyword gets text from specified popup.

Input Arguments

Object Input Arguments

Required?

Description

Object

Yes

This Keyword takes one object input argument. You can choose pop up object from your Object Repository.

Data Input Arguments

Required?

Description

No

No

This keyword doesn’t take any data input argument.

Output

 

Popup text

If the keyword passes successfully

Blank

If object is not provided

Example

If you want to get the value of an object, here is how you will use this keyword –

  • Add OpenBrowser and provide URL

  • Add GetPopUpText keyword

  • Map the popup object from OR

Common Error conditions

Scenarios

Error Message

Debug Information

Invalid object

Popup not found

–Blank–

Blank object Argument Data Missing Data not provided for argument: ‘Object’.

GetPropertyValue

This keyword gets the property value of specified property of a given object. This keyword takes object input argument & data input argument.

Input Arguments

Object Input Arguments

Required?

Description

Object

Yes

This keyword takes object input argument.

Data Input Arguments

Required?

Description

Yes

Yes

This keyword takes one data input argument.

Output

 

True

If the keyword passes successfully

False

If an error is there

Example

URL

Comments

GetPropertyValue.jpg

This keyword gets value of the given property name for the mapped object.

Common Error conditions

Scenarios

Error Message

Debug Information

When data input argument is not given.

Browser: Mozilla Firefox

URL: https://cresconnect.crestechglobal.

com/index.php?

Object: Given

Data: Not Given

Argument Data Missing (-13200)

Argument(s) : (PropertyName) are Blank.

When Object is not given.

Browser: Mozilla Firefox

URL: https://cresconnect.crestechglobal.

com/index.php?

Object: No Object

Data: Given

Argument Data Missing (-13200) Data not provided for argument: ‘Object’. Expected StaticValue was empty.

GetRadioButtonCount

This keyword gets the count of Radio button available in a RadioGroup. This keyword takes Radiobutton as object input argument.

Input Arguments

Object Input Arguments

Required?

Description

Object

Yes

This keyword takes an object as object input argument.

Data Input Arguments

Required?

Description

No

No

This keyword doesn’t take any data input argument.

Output

 

True

If the keyword passes successfully

False

If an error is there

Example

URL

Comments

GetRadioButtonCount.jpg

This keyword gets the count of Radio button available in a RadioGroup.

In this Radio Group, there are 4 radio buttons.

Common Error conditions

Scenarios

Error Message

Debug Information

When object is not given.

Browser: Mozilla Firefox

URL: https://cresconnect.crestechglobal.com/index.php?

Object: No Object

Argument Data Missing (-13200)

Data not provided for argument: ‘Object’. Expected StaticValue was empty

When URL is not given.

Browser: Mozilla Firefox

URL:

Object: Given

Argument Data Missing (-13200) Data not provided for argument: ‘Object’. Expected StaticValue was empty

When Browser name is not given

Browser:

URL: https://cresconnect.crestechglobal.com/index.php?

Object: Given

Argument Data Missing (-13200)

Insufficient Privileges (-14100)

Argument(s): (Browser,URL) are blank

Either Browser was never Opened  or all WebDriver instances were closed

-plugin-unable-to-take-screenshot-

GetSelectedDropDownItem

This keyword gets the value of currently selected item in the specified dropdown inside table. This keyword takes table objects, row index, column index and Index as data input arguments.

This keyword is mostly used in situations where you want to get the name of the selected drop down item in table cell. For example, you want to get the value of selected dropdown item in table cell.

Input Arguments

Object Input Arguments

Required?

Description

Object

Yes

This Keyword takes one object input argument. You can choose dropdown element whose value you want to get from your Object Repository.

Data Input Arguments

Required?

Description

No

No

This keyword doesn’t take any data input argument.

Output

 

True

If the keyword passes successfully

False

If an error is there

Example

If you want to get the value of dropdown object, here is how you will use this keyword –

  • Add OpenBrowser and provide URL https://global.blackberry.com/en/enterprise/contact-us.html

  • Add GetSelectedDropDownItem keyword

  • Map the object from OR

Common Error conditions

Scenarios

Error Message

Debug Information

Invalid object

Data not provided for argument: ‘Object’.

Blank object Argument Data Missing Data not provided for argument: ‘Object’

GetSelectedRadioButtonFromGroup

This keyword syncs the browser until web page loads properly. This keyword is generally used after keyword “OpenBrowser” or  where-ever page redirection happens.

Input Arguments

Object Input Arguments

Required?

Description

Object

No

This keyword doesn’t take any object input argument.

Data Input Arguments

Required?

Description

No

No

This keyword doesn’t take any data input argument.

Output

 

True

If the keyword passes successfully

False

If an error is there

Example

For example, you want to wait for the web-page to be loaded after launching a web-page, then you can use this keyword for the same.

Common Error conditions

Scenarios

Error Message

Debug Information

If keyword is used without launching web-page on browser.

Insufficient Privileges (-14100)

DESCRIPTION:

The system does not have sufficient privileges to carry out a particular task. This mostly happens when the currently logged-in user at the execution site does not have permission to access a particular resource. The protected resource may be a network share, folder or a drive. User may contact the system administrator to sort out the issue.

Either Browser was never Opened  or all WebDriver instances were closed

GetSelectedDropDownItemInTableCell

This keyword returns the name of the specified radio button which is in a radio group. This keyword used in such a condition when website have radio buttons which is in the form of group. If Radio button found in a radio group it passes the execution if not then it fails the execution.

Input Arguments

Object Input Arguments

Required?

Description

Object

Yes

This Keyword takes one object input argument. You can choose the object from your Object Repository.

Data Input Arguments

Required?

Description

Row Index

Yes

Specify Row id of table. Starting index must be zero.

Column Index Yes

Specify Column id of table. Starting index must be zero.

Index Yes Specify the index. Starting index must be zero.

Output

 

True

If the keyword passes successfully

False

If an error is there

Example

In the example above, you want to get the value of selected dropdown item in table cell, here is how you will use this keyword:

GetSelectedDropDownItemInTableCell
Object <    Choose your object from OR   >
Row Index < Specify Row id of table. Starting index must be zero >
Column Index < Specify Row id of table. Starting index must be zero >
Index < Specify index. Starting index must be zero >

Common Error conditions

Scenarios

Error Message

Debug Information

If  no object is given

Argument Data Missing

Data not provided for argument: ‘Object’. Expected StaticValue was empty.

GetSingleTableColumnText

This Keyword fetches the text of single column of a table separated by delimiter. It takes table object as object input argument, column index, delimiter as data input arguments.

Input Arguments

Object Input Arguments

Required?

Description

Object

Yes

This keyword takes one table object Input argument. You can choose table object from your Object Repository.

Data Input Arguments

Required?

Description

Column Index

Yes

This argument takes Column number of the table where starting index is “0”.

Delimiter Yes  Specify the text/symbol/special characters by which the row text has to be separated.

Output

 

True

If the keyword passes successfully

False

If an error is there

Example

URL

Comments

https://en.wikipedia.org/wiki/List_of_Bollywood_films_of_2017

Keywords.jpg

This keyword  fetches text of single column of a table separated by delimiter.

In the above example we need to fetch the text of single column of a table separated by delimiter by using  GetSingleTableColumnText keyword  as shown below:

GetSingleTableColumnText

Object <   Choose your table object from OR   >
Column Index <    0  >
Delimiter <   :  >

Common Error conditions

Scenarios

Error Message

Debug Information

When no object is provided

Argument Data Missing (-13200)

DESCRIPTION:

A step could not be executed because one or more of the arguments have not been provided a value. Of all the arguments a keyword accepts, some arguments might be compulsory. As opposed to the non-compulsory ones, the compulsory argument must be provided some data. The data may be provided through one of many sources like statically entering, output of a previous step, a global variable etc; but it must not be left blank.

Data not provided for argument: ‘Object’. Expected Static Value was empty.

When InValid object and valid Data Input Arguments are provided.

 

Object : Table

Argument Data Missing (-13200)

DESCRIPTION:

A step could not be executed because one or more of the arguments have not been provided a value. Of all the arguments a keyword accepts, some arguments might be compulsory. As opposed to the non-compulsory ones, the compulsory argument must be provided some data. The data may be provided through one of many sources like statically entering, output of a previous step, a global variable etc; but it must not be left blank.

Specified Object is not table

GetSingleTableRowText

This Keyword fetches the text of single row of a table separated by delimiter. It takes table object as object input argument and row index, delimiter as data input argument.

Input Arguments

Object Input Arguments

Required?

Description

Object

Yes

This keyword takes one table object Input argument. You can choose table object from your Object Repository.

Data Input Arguments

Required?

Description

Row

Index

Yes

This argument takes Column number of the table where starting index is “0”.

Delimiter Yes  Specify the text/symbol/special characters by which the row text has to be separated.

Output

True

If the keyword passes successfully

False

If an error is there

Example

URL

Comments

https://en.wikipedia.org/wiki/List_of_Bollywood_films_of_2017

Keywords.jpg

This keyword  fetches text of single row of a table separated by delimiter.

In the above example we need to fetch the text of single row of a table separated by delimiter by using  GetSingleTableRowText keyword  as shown below:

GetSingleTableRowText

Object <   Choose your table object from OR   >
Column Index <    0  >
Delimiter <   :  >

Common Error conditions

Scenarios

Error Message

Debug Information

When no object is provided

Argument Data Missing (-13200)

DESCRIPTION:

A step could not be executed because one or more of the arguments have not been provided a value. Of all the arguments a keyword accepts, some arguments might be compulsory. As opposed to the non-compulsory ones, the compulsory argument must be provided some data. The data may be provided through one of many sources like statically entering, output of a previous step, a global variable etc; but it must not be left blank.

Data not provided for argument: ‘Object’. Expected Static Value was empty.

When InValid object and valid Data Input Arguments are provided.

 

Object : Table

Argument Data Missing (-13200)

DESCRIPTION:

A step could not be executed because one or more of the arguments have not been provided a value. Of all the arguments a keyword accepts, some arguments might be compulsory. As opposed to the non-compulsory ones, the compulsory argument must be provided some data. The data may be provided through one of many sources like statically entering, output of a previous step, a global variable etc; but it must not be left blank.

Specified Object is not table

GetTableCellText

This keyword will get Text which is available inside any table Cell. This keyword is mostly used in situations where user want to get Text which is available inside Table Cell.

Input Arguments

Object Input Arguments

Required?

Description

Object

Yes

This Keyword takes one object input argument. You can choose the table object from your Object Repository From where user want to get Text

Data Input Arguments

Required?

Description

RowIndex

Yes

Specify the Row Index of the cell in which Text is available

Note: RowIndex start from zero

ColumnIndex Yes Specify the Column Index of the cell in which Text is available
Note: ColumnIndex start from zero
Before Yes Specify a text before which the expected text is present
After Yes Specify a text after which the expected text is present

Output

 

It should give Text which is available inside Table Cell

If the keyword passes successfully

False

If an error is there

Example

In the example table above, if you want to get a text “of” from “width of area” available in “Comment” column i.e Column Index 3 and Row Index 1, we can get the required text using this keyword, here is how you will use this keyword “GetTableCellText”.

GetTableCellText

Object <   Choose your object from OR   >
Row Index <   1  >
Column Index <  3>
Before <   Area  >
After <   Width   >

Common Error conditions

Scenarios

Error Message

Debug Information

If Table Object is found

If Table Object not found

Object:Provide Wrong Object

RowIndex:1

ColumnIndex:3

Before:area

After:width

Object not found

If Specified Cell is not Found

Object:table

RowIndex:10

ColumnIndex:10

Before:area

After:width

Argument Data Invalid (-13300)

If user not Provide Table Object

Object:no-object-attached

RowIndex:0

ColumnIndex:0

Before:area

After:width

Argument Data Missing (-13200)

If user not Provide Input Argument

Object:table

RowIndex:

ColumnIndex:

Argument Data Missing (-13200)

GetTableColumnCount

This Keyword Returns the number of column in the specified Table. This keyword used in such a condition where user want Column Count of Specified Table with the help of Row Index .

Input Arguments

Object Input Arguments

Required?

Description

Object

Yes

This Keyword takes one object input argument. You can choose the table object from your Object Repository From where user want to get Column Count

Tip: You can use AddObjectFromApplication or AddObjectFromInternetExplore to add Table object to Object Repository

Data Input Arguments

Required?

Description

RowIndex

Yes

Specify the Row Index of the cell in which Text is available

Note: RowIndex start from zero

Output

It should give Column Count which is on Particular Row in Table

If the keyword passes successfully

False

If an error is there

Example

 

Last Name

First Name

Email

Due

Web Site

Action

Smith

John

jsmith@gmail.com

$50.00

https://www.jsmith.com

edit delete

Bach

Frank

fbach@yahoo.com

$51.00

https://www.frank.com

edit delete

Doe

Jason

jdoe@hotmail.com

$100.00

https://www.jdoe.com

edit delete

Conway

Tim

tconway@earthlink.net

$50.00

https://www.timconway.com

edit delete

 

In the example table, if user want  to get Column Count of  First Row here is how you will use this keyword.

GetTableColumnCount

Object <   Choose your object from OR   >
Row Index <   0  >

Common Error conditions

Scenarios

Error Message

Debug Information

If Table Object is found

Object:table

RowIndex:0

If Table Object not found

Object:Provide Wrong Object

RowIndex:0

Argument Data Missing

If Specified row is not Found

Object:table

RowIndex:50

Argument Data Invalid

If user not Provide Table Object

Object:no-object-attached

RowIndex:0

Argument Data Missing (-13200)

If user not Provide Input Argument

Object:table

RowIndex:

ColumnIndex:

Argument Data Missing (-13200)

GetTableColumnHeader

This keyword gets header of column in specified table. This keyword takes OR object and Column ID as input parameter. This keyword is mostly used in situations where you want to get the value of Column ID of the specified Column index.

Input Arguments

Object Input Arguments

Required?

Description

Object

Yes

This Keyword takes one object input argument. You can choose the object from your Object Repository.

Data Input Arguments

Required?

Description

Column Index

Yes

Specify Column id of table. Starting index must be zero.

Output

 

True

If the keyword passes successfully

False

If an error is there

Example

In the example, if you want to get the column header “Appearance”, here is how you will use this keyword:

GetTableColumnHeader

Object <   Choose your object from OR   >
Row Index <   Specify Column id of table. Starting index must be zero  >

Common Error conditions

Scenarios

Error Message

Debug Information

If  no object is given

Argument Data Missing

Data not provided for argument: ‘Object’. Expected StaticValue was empty.

GetTableColumnNumber

This keyword gets Column Number of table. This keyword used in such a condition where user want Column Number of Specified Table with the help of Row Index and Value

Input Arguments

Object Input Arguments

Required?

Description

Object

Yes

This Keyword takes one object input argument. You can choose the table object from your Object Repository From where user want to get Column Count

Data Input Arguments

Required?

Description

RowIndex

Yes

Specify the Row Index of the cell in which Text is available

Note: RowIndex start from zero

Value Yes

Specify the Value which is written inside Table Cell

Note: Value is Even Text or Any Number

Output

It should give Column Number which is available in Table

If the keyword passes successfully

False

If an error is there

Example

 

Last Name

First Name

Email

Due

Web Site

Action

Smith

John

jsmith@gmail.com

$50.00

https://www.jsmith.com

edit delete

Bach

Frank

fbach@yahoo.com

$51.00

https://www.frank.com

edit delete

Doe

Jason

jdoe@hotmail.com

$100.00

https://www.jdoe.com

edit delete

Conway

Tim

tconway@earthlink.net

$50.00

https://www.timconway.com

edit delete

 

In the example table, if user want  to get Column Number of  “Last Name” which is available in 1st Row 1st column, here is how you will use this keyword.

GetTableColumnNumber

Object <   Choose your object from OR   >
Row Index <   0  >
Value <   Last Name  >

Common Error conditions

Scenarios

Error Message

Debug Information

If Table Object is found

Object:table

RowIndex:0

Value:Last Name

If Table Object not found

Object:Provide Wrong Object

RowIndex:0

Value:Last Name

Argument Data Missing

If Specified row is not Found

Object:table

RowIndex:50

Value:Last Name

Argument Data Invalid

If user not Provide Table Object

Object:no-object-attached

RowIndex:0

Value:Last Name

Argument Data Missing (-13200)

If user not Provide Input Argument

Object:table

RowIndex:

Value:

Argument Data Missing (-13200)

GetTableRowCount

This Keyword Returns the number of Row in the specified Table. This keyword used in such a condition where user want to Count row of Specified Table

Input Arguments

Object Input Arguments

Required?

Description

Object

Yes

This Keyword takes one object input argument. You can choose the table object from your Object Repository From where user want to get Column Count

Data Input Arguments

Required?

Description

No

No

Not Required

Output

It should give RowCount which is on Particular Row in Table

If the keyword passes successfully

False

If an error is there

Example

 

Last Name

First Name

Email

Due

Web Site

Action

Smith

John

jsmith@gmail.com

$50.00

https://www.jsmith.com

edit delete

Bach

Frank

fbach@yahoo.com

$51.00

https://www.frank.com

edit delete

Doe

Jason

jdoe@hotmail.com

$100.00

https://www.jdoe.com

edit delete

Conway

Tim

tconway@earthlink.net

$50.00

https://www.timconway.com

edit delete

 

In the example table, if user want  to get Row Count of  Table here is how you will use this keyword.

Common Error conditions

Scenarios

Error Message

Debug Information

If Table Object is found

Object:table

If Table Object not found

Object Not Found.

If user does not provide specified Object

Argument Data Invalid

GetTableRowNumber

This keyword gets Row Number of table. This keyword used in such a condition where user want Row Number of Specified Table with the help of column Index and Value.

Input Arguments

Object Input Arguments

Required?

Description

Object

Yes

This Keyword takes one object input argument. You can choose the table object from your Object Repository From where user want to get Column Index.

Data Input Arguments

Required?

Description

RowIndex

Yes

Specify the Column Index of the cell which is available in Table

Note: Column Index start from zero

Value Yes

Specify the Value which is written inside Table Cell

Note: Value is Even Text or Any Number

Output

It should give row Number which is available in Table

If the keyword passes successfully

False

If an error is there

Example

 

Last Name

First Name

Email

Due

Web Site

Action

Smith

John

jsmith@gmail.com

$50.00

https://www.jsmith.com

edit delete

Bach

Frank

fbach@yahoo.com

$51.00

https://www.frank.com

edit delete

Doe

Jason

jdoe@hotmail.com

$100.00

https://www.jdoe.com

edit delete

Conway

Tim

tconway@earthlink.net

$50.00

https://www.timconway.com

edit delete

 

In the example table, if user want  to get Row Index of  “Last Name” which is available in 1st Row 1st column, here is how you will use this keyword.

GetTableRowNumber

Object <   Choose your object from OR   >
Column Index <   0  >
Value <   Last Name  >

Common Error conditions

Scenarios

Error Message

Debug Information

If Table Object is found

Object:table

Column Index:0

Value:Last Name

If Table Object not found

Object:Provide Wrong Object

Column Index:0

Value:Last Name

Argument Data Missing

If Specified row is not Found

Object:table

Column Index:50

Value:Last Name

Argument Data Invalid

If user not Provide Table Object

Object:no-object-attached

Column Index:0

Value:Last Name

Argument Data Missing (-13200)

If user not Provide Input Argument

Object:table

Column Index:

Value:

Argument Data Missing (-13200)

GetTextAreaColRowLength

This keyword fetches TextArea Column and Row length separated by semicolon (;) . This keyword is used in such a condition where user want to get the length of rows and columns in Text area. Basically it should give the length of text area with reference to row and column. Column and Rows are separated by semicolon where before semicolon part is indicating column and after semicolon part is indicating Row.

Input Arguments

Object Input Arguments

Required?

Description

Object

Yes

This Keyword takes one object input argument. You can choose the table object from your Object Repository From where user want to get Column Count.

Data Input Arguments

Required?

Description

No

No

This keyword doesn’t take any data input argument.

Output

 

It should give Row and Column length separated by Semicolon which is in Text Area

If the keyword passes successfully

False

If an error is there

Example

In the example, if user want  to get Column and Row length of Text Area then user first fetch Text Area Object and then use it with the keyword of “GetTextAreaColumnRowLength” here is how you will use this keyword

For More Information user can go through below given URL

https://www.echoecho.com/htmlforms08.htm

GetTextAreaColumnRowLength

Object <   Choose your object from OR   >

Common Error conditions

Scenarios

Error Message

Debug Information

If Text Area Object is found

Object: Long Text

If Text Area Object not found

Object:Provide Wrong Object

Object Not Found

If Text Area Object is not Found

Object: wrong Object

Argument Data Invalid

If user does not Provide Text Area Object

Argument Data Missing (-13200)

GetTextAreaDefaultValue

This Keyword  fetches the default value of TextArea type object. It takes OR object as object input argument.

Input Arguments

Object Input Arguments

Required?

Description

Object

Yes

This keyword takes one Text Area Type object Input argument. You can choose Text Area object from your Object Repository.

Data Input Arguments

Required?

Description

No

No

This keyword doesn’t take any data input argument.

Output

 

Default Value of the Text Area

If the keyword passes successfully

False

If an error is there

Example

URL

Comments

https://www.december.com/html/3.2/element/textarea.html

My exe.jpg

This keyword  fetches the default value of the Text Area type object.

In the above example we need to default value of the Text Area “Your Name” by using  GetTextAreaDefaultValue keyword  as shown below:

GetTextAreaDefaultValue

Object <   Choose your Text Area  object from OR     >

Common Error conditions

Scenarios

Error Message

Debug Information

When no object is provided

Argument Data Missing (-13200)

DESCRIPTION:

A step could not be executed because one or more of the arguments have not been provided a value. Of all the arguments a keyword accepts, some arguments might be compulsory. As opposed to the non-compulsory ones, the compulsory argument must be provided some data. The data may be provided through one of many sources like statically entering, output of a previous step, a global variable etc; but it must not be left blank.

Data not provided for argument: ‘Object’. Expected Static Value was empty.

When blank object  Input Arguments are provided.

Verification Failed (-16100)

 

DESCRIPTION:

The value which is required, was not found on the currently active page or view.

Data not provided for argument: ‘Object’. Expected StaticValue was empty.

GetTextAreaLength

This keyword is used to get the length property value of text area. This keyword is used when you want to fetch the length value of any text area and it takes Text area as Object Input Argument.

Input Arguments

Object Input Arguments

Required?

Description

Object

Yes

Text Area, whose length needs to be fetched.

Note: Provide Object which contain length property.

Data Input Arguments

Required?

Description

No

No

This keyword doesn’t take any data input argument.

Output

 

Length of Text Area

If the keyword passes successfully

False

If an error is there

Blank If Null value is provided

Example

If you want to get the length of any specified text area then use this keyword as shown below

GetTextAreaLength

Object <   Choose text area object from OR   >

Common Error conditions

Scenarios

Error Message

Debug Information

If provide Invalid Object

Insufficient Privileges (-14100)

If provide Null Object Argument Data Missing (-13200) Data not provided for argument: ‘Object’. Expected StaticValue was empty.

GetTextAreaName

This keyword gets the name of the textarea. This keyword takes text area object as object input parameter. This keyword is mostly used in situations where you want to get the name of the text area.

Input Arguments

Object Input Arguments

Required?

Description

Object

Yes

This Keyword takes one object input argument. You can choose the object from your Object Repository.

Data Input Arguments

Required?

Description

No

No

This keyword doesn’t take any data input argument.

Output

 

True

If the keyword passes successfully

False

If an error is there

Example

In the example above, you want to get the name of the text area, here is how you will use this keyword:

GetTextAreaName

Object <   Choose your object from OR   >

Common Error conditions

Scenarios

Error Message

Debug Information

If  no object is given

Argument Data Missing

Data not provided for argument: ‘Object’. Expected StaticValue was empty.

GetTextAreaToolTip

This keyword is used to get the tool tip available in specified text area. This keyword is used when you want to fetch the tool tip of any text area and it takes Text area as Object Input Argument which has tool tip.

Input Arguments

Object Input Arguments

Required?

Description

Object

Yes

Text Area of which tool tip has to be fetched.

Note: Text area should have Tool tip.

Data Input Arguments

Required?

Description

No

No

This keyword doesn’t take any data input argument.

Output

 

Tool Tip

If the keyword passes successfully

False

If an error is there

Blank If Null or invalid Data Input argument is provided

Example

If you want to fetch tool tip from text area “body” whose Tool tip is “What’s on your mind” then you will use this keyword as shown below –

GetTextAreaToolTip

Object <   Choose text area object from OR   >

It will get the Tool tip “What’s on your mind” of Text area.

Common Error conditions

Scenarios

Error Message

Debug Information

If provide Invalid Object

Insufficient

 

If provide Null Object

Argument Data Missing (-13200) Data not provided for argument: ‘Object’. Expected StaticValue was empty.

GetTextAreaValue

This keyword is used to get the value from text area. This keyword is used when you want to fetch the value of any text area and it takes Text area as Object Input Argument.

Input Arguments

Object Input Arguments

Required?

Description

Object

Yes

Text Area whose value you want to fetch.

Data Input Arguments

Required?

Description

No

No

This keyword doesn’t take any data input argument.

Output

Text Area Value

If the keyword passes successfully

False

If an error is there

Blank If Null or invalid Data Input argument is provided

Example

If you want to get value from any specified text area then use this keyword as shown below –

GetTextAreaValue

Object <   Choose text area object from OR   >

It will get the value “Testing Text Area” from text area provided as shown.

Common Error conditions

Scenarios

Error Message

Debug Information

If provide Invalid Object

Insufficient

 

If provide Null Object

Argument Data Missing (-13200) Data not provided for argument: ‘Object’. Expected StaticValue was empty.

GetTextFromEditBox

This keyword is used to fetch the text of any Edit Box. This keyword is used when you want to fetch the text of any Edit Box. It takes Edit Box as Object Input Argument. These keywords always pass either provide valid object or invalid object.

Input Arguments

Object Input Arguments

Required?

Description

Object

Yes

Edit Box from where text has to be fetched.

Data Input Arguments

Required?

Description

No

No

This keyword doesn’t take any data input argument.

Output

 

True

If the keyword passes successfully

False

If an error is there

Example

If you want to fetch text from Edit Box “firstname” then use this keyword as shown below –

GetTextFromEditBox

Object <   First Name   >

Common Error conditions

Scenarios

Error Message

Debug Information

If provide Invalid Object

If provide Null Object Argument Data Missing (-13200) Data not provided for argument: ‘Object’. Expected StaticValue was empty.

GetTextFromTextArea

This keyword is used to fetch the text of any text area. This keyword is used when you want to fetch the text of specified text area. It takes Text area as Object Input Argument.

Input Arguments

Object Input Arguments

Required?

Description

Object

Yes

Text Area from Text has to be fetched

Data Input Arguments

Required?

Description

Value

No

This keyword doesn’t take any data input argument.

Output

 

True

If the keyword passes successfully

False

If an error is there

Blank If provide null or invalid Object Input Argument.

Example

If you want to fetch text from any specified text area then use this keyword as shown-

GetTextFromTextArea

Object <   First Name   >

It will get the text “Testing Text Area” from text area.

Common Error conditions

Scenarios

Error Message

Debug Information

If provide Invalid Object

If provide Null Object Argument Data Missing (-13200) Data not provided for argument: ‘Object’. Expected StaticValue was empty.

MinimizeBrowser

This keyword minimizes the current browser. This keyword does not takes any input argument.

Input Arguments

Object Input Arguments

Required?

Description

Object

No

This keyword doesn’t take any object input argument.

Data Input Arguments

Required?

Description

No

No

This keyword doesn’t take any data input argument.

Output

 

True

If the keyword passes successfully

False

If an error is there

Example

Image

Comments

MinimizeBrowser.jpg

This keyword minimizes the opened browser.

Common Error conditions

Scenarios

Error Message

Debug Information

When URL of web application is not given.

Browser: Mozilla Firefox

URL:

Argument Data Missing (-13200)

Insufficient Privileges (-14100)

Argument(s): (Browser,URL) are blank

Either Browser was never Opened  or all WebDriver instances were closed

-plugin-unable-to-take-screenshot-

When Browser name is not given

Browser:

URL: https://www.crestechsoftware.com/CrestShop/

Argument Data Missing (-13200)

Insufficient Privileges (-14100)

Argument(s): (Browser,URL) are blank

Either Browser was never Opened  or all WebDriver instances were closed

-plugin-unable-to-take-screenshot-

NavigateTo

This keyword navigates to specified URL provided by User.  This keyword is used when user wants to navigate to any specified URL provided. It takes URL as Input parameter.

Input Arguments

Object Input Arguments

Required?

Description

Object

No

This keyword doesn’t take any object input argument.

Data Input Arguments

Required?

Description

URL

Yes

Provide URL to which you want to NavigateTo

Output

 

True

If the keyword passes successfully

False

If an error is there

Example

If you want to NavigateTo “www.google.com” from any current webpage then use this keyword as shown-

Navigate To

Object <   Not Required >
URL <   www.google.com >

Common Error conditions

Scenarios

Error Message

Debug Information

If invalid URL is provided 

If Provide null URL < Argument Data Missing (-13200) > Argument(s):(URL)are blank

NextPageObject

This keyword verifies the Object available on next page. This keyword is used when user wants to verify any object available on next page or not. It takes an Object as Input parameter.

Input Arguments

Object Input Arguments

Required?

Description

Object

Yes

Provide Object which you want to verify that is available on next page.

Data Input Arguments

Required?

Description

Time Out

Yes

*It takes time (sec) as input parameter.

NOTE: *It takes only Integer value.

*Timeout in Data Input Arguments should be less than Step timeout set in Advance Execution Settings

Output

 

True

If the keyword passes successfully

False

If an error is there

Blank If do not provide any Object

Example

If you want to verify “HelpDesk” Object is available on next page or not then use this keyword as shown below:

NextPageObject

Object <   Not Required >
URL <   10 Sec >

It will verify Object “HelpDesk” is available on next page.

Common Error conditions

Scenarios

Error Message

Debug Information

If provide invalid Object

Object Not Found (-11100).

Waited for 15.913 seconds

If Provide null Object < Argument Data Missing (-13200) > Data not provided for argument: ‘Object’. Expected StaticValue was empty.
If Provide Invalid timeout

SetBrowserCapability

This keyword sets the capabilities of browser using “Key-Value” pair. It stores the browser properties such as browser name, Value type etc. It takes Key, value, value type, browser name as data input arguments.

Input Arguments

Object Input Arguments

Required?

Description

Object

No

This keyword doesn’t take any object input argument.

Data Input Arguments

Required?

Description

Key

Yes

Name of the browser specific capability

Value Yes Value of Capability
Value Type Yes DataType of Value( String, Boolean, Integer).
Browser Name Yes It is only required when chrome options/Firefox Profile is required. Leave it blank to set desired capabilities.

Output

 

True

If the keyword passes successfully

False

If an error is there

Example

If you want to set the capabilities of the browser, you can do so by using Set BrowserCapability  keyword as follows:

Set BrowserCapability

 

Key

Internet Explorer Driver

Value

True

Value Type Boolean
Browser Name IE 

Common Error conditions

Scenarios

Error Message

Debug Information

When Invalid Data Input Arguments are provided

Argument Data Invalid (-13300)

DESCRIPTION:

The data value for one or more input arguments was not what was expected. This might happen when the input is expected in a specific format or should be chosen from a predefined set of values. Check for spell errors and capsing.

Capability Not Set. Not a valid type of Value received

When Blank Data Input Arguments are provided

Argument Data Invalid (-13300)

DESCRIPTION:

The data value for one or more input arguments was not what was expected. This might happen when the input is expected in a specific format or should be chosen from a predefined set of values. Check for spell errors and capsing.

Capability Not Set. Not a valid type of Value received

Web_SetFocusOnCurrentWindow

This keyword is used to set focus on the current window. This keyword doesn’t take any object/data Input arguments.

Input Arguments

Object Input Arguments

Required?

Description

No

No

This keyword doesn’t take any object input argument.

Data Input Arguments

Required?

Description

Data

No

This keyword doesn’t take any data input argument.

Output

 

True

This keyword always passes successfully and sets focus on the current window of the web application.

False

This keyword never fails even when there is no web application to set focus.

 

Example

Image

Comments

Mozilla Firefox.jpg

Here, user wants to set focus on the recently minimized window of the Mozilla Firefox web browser.

In this screenshot, if you want to set focus on the currently minimized window of Mozilla Firefox then you can use the “Web_SetFocusOnCurrentWindow” keyword as follows:

Web_SetFocusOnCurrentWindow

Object

<  No object required  >

 

Common Error conditions

There are no error scenarios for this keyword as it always passes successfully.

Web_WaitForWindowLoad

This keyword is used to wait for the specified window for the given timeout. This keyword takes no object input arguments. This keyword takes WindowTitle, TitleIndex, IsPartial & Timeout as data Input arguments.

Input Arguments

Object Input Arguments

Required?

Description

No

No

This keyword doesn’t take any object input argument.

Data Input Arguments

Required?

Description

Data

Yes

This keyword takes WindowTitle, TitleIndex, IsPartial & Timeout as data Input arguments.

Note: Providing Window title, TitleIndex, IsPartial values in data input argument is not compulsory. It waits for the window to get loaded till the timeout which is longer between the timeout specified in test step and the timeout specified in execution wizard. If the specified timeout in this step is less than 5 seconds then it always get failed i.e. timeout value specified in Test step should be greater or equal to the 5.

 

Output

 

True

If the keyword passes successfully

False

If the keyword fails

Example

Image

Comments

Mozilla Firefox.jpg

Here, user wants to wait the loading of Mozilla Firefox window till the specified timeout.

In this screenshot, if you want to wait for the loading of window till the specified timeout then you can use the “Web_WaitForWindowLoad” keyword as follows:

Web_WaitForWindowLoad

Object

<  No object required  >

 

Common Error conditions

Scenarios

Error Message

Debug Information

When the specified timeout is less than the 5 seconds.

Argument Data Invalid (-13300)

Timeout should be greater than 5 seconds.

When the timeout is not given.

Argument Data Invalid (-13300)

Timeout should be greater than 5 seconds.

When Web_WaitForWindowLoad keyword is used without opening web browser.

Window not found.

Web_WaitForWindowLoad

This keyword is used to wait for the specified window for the given timeout. This keyword takes no object input arguments. This keyword takes WindowTitle, TitleIndex, IsPartial & Timeout as data Input arguments.

Input Arguments

Object Input Arguments

Required?

Description

No

No

This keyword doesn’t take any object input argument.

Data Input Arguments

Required?

Description

Data

Yes

This keyword takes WindowTitle, TitleIndex, IsPartial & Timeout as data Input arguments.

Note: Providing Window title, TitleIndex, IsPartial values in data input argument is not compulsory. It waits for the window to get loaded till the timeout which is longer between the timeout specified in test step and the timeout specified in execution wizard. If the specified timeout in this step is less than 5 seconds then it always get failed i.e. timeout value specified in Test step should be greater or equal to the 5.

 

Output

 

True

If the keyword passes successfully

False

If the keyword fails

Example

Image

Comments

Mozilla Firefox.jpg

Here, user wants to wait the loading of Mozilla Firefox window till the specified timeout.

In this screenshot, if you want to wait for the loading of window till the specified timeout then you can use the “Web_WaitForWindowLoad” keyword as follows:

Web_WaitForWindowLoad

Object

<  No object required  >

 

Common Error conditions

Scenarios

Error Message

Debug Information

When the specified timeout is less than the 5 seconds.

Argument Data Invalid (-13300)

Timeout should be greater than 5 seconds.

When the timeout is not given.

Argument Data Invalid (-13300)

Timeout should be greater than 5 seconds.

When Web_WaitForWindowLoad keyword is used without opening web browser.

Window not found.

GetLoadTime

This Keyword is used to calculate the total load time. This keyword doesn’t take any object or data input arguments.

Input Arguments

Object Input

Arguments

Required?

Description

Object

No

This keyword doesn’t take any object input argument.

Data Input Arguments

Required?

Description

Item

No

This keyword doesn’t take any data input argument.

Output

True

This keyword returns Load Time in seconds.

 

Note: This Keyword never fails.

Was this article helpful to you? Yes No