17.1 Generic Keywords – Action

AcceptPopup

This keyword accepts the current popup. It doesn’t take any object/data 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 the keyword fails

Example

URL

Comments

https://www.indianrail.gov.in/pnr_Enq.html

In this web page, this keyword accepts popup generated after clicking over Get Status without entering a valid PNR number.

 

In the above example, we click on Get Status to know the PNR status without entering the PNR number. While using this keyword, you should ensure that you are using this keyword with a relevant keyword (like OpenBrowser) which can open your web application having popup to be accepted.

Common Error conditions

 

Scenarios

Error Message

Debug Information

If popup is absent

Browser: Mozilla Firefox

URL: https://www.indianrail.gov.in/pnr_Enq.html

Note: keyword generating popup message, is not applied.

Unsatisfied Dependencies (-14200)

Popup not found

If URL of web application having popup is Not given

Browser: Mozilla Firefox

URL:

Argument Data Missing (-13200)

Argument(s) : (Browser;URL) are blank.

 

CaptureObjectSnapshot

This keyword is used to capture snapshot of provided object and returns the path of saved snapshot. It takes OR Object as Object Input Argument. It doesn’t take any data input argument.

Input Arguments

Object Input Arguments

Required?

Description

Object

Yes

This keyword takes the OR object whose snapshot has to be captured.

Data Input Arguments

Required?

Description

Data

No

This keyword doesn’t take any data input argument.

Output

Path of captured snapshot

If the keyword passes successfully

False

If the keyword fails

Blank
If null object Input Argument is provided

Example

If you want to capture snapshot of any specified Object then use this keyword as shown below –

CaptureObjectSnapshot

Object

< Choose an Object from OR >

Note: This keyword captures the snapshot of that particular Object provided and not of the entire page.

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

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

CaptureSnapshot

This keyword captures Snapshot of the web application and saves the snapshot at specified path. It takes ImagePath as data input argument. You can save the captured snapshot in desired image file format (like .png, .jpg, .bmp, .jpeg, .gif, .tif etc.).

Input Arguments

Object Input Arguments

Required?

Description

Object

No

This keyword doesn’t take any object input argument.

Data Input Arguments

Required?

Description

Image Path

Yes

This Keyword takes ImagePath

as data input arguments

Note: You should provide path of your local system

(Ex. C:UsersUsernameDocuments). By default

the keyword saves the image file with the name

as OpKey.png and if filename needs to be

provided you can provide path of your local

system storage along with the name of snapshot

file to be captured

(Ex. C:UsersUsernameDocumentsOpKey_

Snapshot.png)

Output

True

If the keyword passes successfully

False

If the keyword fails

Example

Give Image Path

Comments

C:UsersUsernameDocumentsOpKey.png

The captured screenshot will be saved in the document folder with OpKey.png file name

C:UsersUsernameDocumentsOpKey.jpg
The captured screenshot will be saved in the document folder with OpKey.jpg file name
C:UsersUsernameDocumentsOpKey.bmp
The captured screenshot will be saved in the document folder with OpKey.bmp file name
C:UsersUsernameDocumentsOpKey.jpeg
The captured screenshot will be saved in the document folder with OpKey.jpeg file name
C:UsersUsernameDocumentsOpKey.gif
The captured screenshot will be saved in the document folder with OpKey.gif file name
C:UsersUsernameDocumentsOpKey.tif
The captured screenshot will be saved in the document folder with OpKey.tif file name

In the example table above, you can save your captured snapshot in desired image file format by providing the corresponding image path along with file name with relevant extension. Before using this keyword, you should ensure that you are using this keyword with a relevant keyword (like OpenBrowser) which can open your web application for capturing snapshot.

Common Error conditions

Scenarios

Error Message

Debug Information

If data argument is not given (No Image Path)

Browser: Mozilla Firefox

URL: www.opkey.com

ImagePath:

Argument Data Missing (-13200)

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

If browser name & web application URL was not given

Browser:

URL:

ImagePath:  C:UsersuserDesktopOpKey.jpg   

    

Argument Data Missing (-13200)

Insufficient Privileges (-14100)

Argument(s) : (Browser;URL) are blank.

Description: -plugin-unable-to-take-screenshot

Either Browser was never opened or a… -plugin –unable-

ClearEditField

This keyword clears the value of specified Edit box. This keyword takes Edit box Object as Object Input argument. It does not take any Data Input Arguments.

Input Arguments

Object Input Arguments

Required?

Description

Object

Yes

This keyword takes an Edit Box  object as object input argument.

Output

True

If the keyword passes successfully

False

If the keyword fails

Example

Image

Comments

 

This keyword clears the text in the specified edit field.

In the above screenshot, if you want to clear the Text in the “E-mail Address ”  EditBox then you can use the “ClearEditBox” keyword as follows:

ClearEditBox

Object

<  Choose an Edit Box Object from the OR  > Here,  E-mail Address

Common Error conditions

Scenarios

Error Message

Debug Information

When object is not given

Browser: Mozilla Firefox

URL:

https://cresconnect.crestechglo

bal.com/index.php?

Object Input Argument: No Object

Argument Data Missing (-13200)

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

When Browser name & URL are not given

Browser:

URL:

Object Input Argument: Given

Argument Data Missing (-13200)

Insufficient Privileges (-14100)

Either Browser was never Opened  or all WebDriver instances were closed

-plugin-unable-to-take-screenshot–

ClearTextArea

This keyword clears the text from specified TextArea. This keyword takes TextArea object as Object Input argument. It does not take any Data Input Arguments.

Input Arguments

Object Input Arguments

Required?

Description

Object

Yes

This keyword takes a Text Area  object

as 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 the keyword fails

Example

Image

Comments

 ClearTextArea.jpg

This keyword clears the text area from the mapped object.

In the above screenshot, if you want to clear the Text from the  “Add Comment ”  TextArea then you can use the “ClearTextArea” keyword as follows:

ClearTextArea

Common Error conditions

Click

This keyword clicks on the specified object. It takes OR object as input argument.

Input Arguments

Output

Example

In the above screenshot, if you want to click on “My Account” of CrestShop web application then this is how you will use “Click” keyword .

Click

While using “Click” keyword, you should ensure that you are using this keyword with a relevant keyword (like OpenBrowser) which can open your web application for clicking over desired object.

Common Error conditions

ClickButton

This keyword clicks on the specified object of type button. This keyword takes Button object as object input argument.

Input Arguments

Output

Example

In the above screenshot, the user clicks on “Get Status” button of the web application. While using “ClickButton” keyword, you should ensure that you are using the keyword with a relevant keyword (like OpenBrowser) which can open your web application having button to be clicked upon. This is how you will use “ClickButton” keyword .

ClickButton

Common Error conditions

ClickButtonAndWait

This keyword clicks on given button and waits for the specified Time. It takes Button object and time in seconds as input argument. This keyword can be used as per requirement of your test scenario where after clicking to the given button you are required to wait for some time.

Input Arguments

Output

Example

In the above screenshot, this keyword waits for 10 seconds after clicking the button “GetStatus” button. While using “ClickButtonAndWait” keyword, you should ensure that you are using this keyword with a relevant keyword (like OpenBrowser) which comes first in Test execution and opens desired web application page having button to be clicked upon.

ClickButtonAndWait

Common Error conditions

ClickButtonInTableCell

This keyword clicks on a button available in table cell. It takes one Table type object as object input argument and Row Index, Column Index, Object Index  as data input argument.

For ClickButtonInTableCell  Keyword:

Input Arguments

Output

Example

In the above Screenshot, if you want to click “Submit” button then  you can do so by using ClickButtonInTableCell  keyword as follows:

ClickButtonInTableCell

Common Error conditions

ClickImage

This keyword clicks on a specified image. This keyword is mostly used when user want to click on any given image. It takes one Image object as object input arguments. It does not take any Data Input Arguments.

Input Arguments

Output

Example

If you click on the highlighted image then here is how you will use “Click Image” keyword.

ClickImage

Common Error conditions

ClickImageByTitle/Alt

This keyword clicks on image on basis of image title or alt attribute given. It takes Title/Alt, Index, Partial Text as Data Input Arguments.

For ClickImageByTitle/Alt  Keyword:

Input Arguments

Output

Example

In the above Screenshot, if you want to click on the  “CresConnect” image then, here is how you will use “ClickImageByTitle/Alt ” keyword.

ClickImageByTitle/Alt

Common Error conditions

ClickInTableCellByQuery

This keyword clicks in the specified cell of the table using query. It takes one table type object as object input arguments.

For ClickInTableCellByQuery  Keyword:

Input Arguments

Output

Example

In the above Screenshot, if you want to click in the highlighted  Table cell , you can do so by using “ClickInTableCellByQuery ” keyword as follows:

ClickInTableCellByQuery

Common Error conditions

ClickLink

This keyword clicks on specified link. It takes link object as Input argument. It does not take any Data Input Argument.

Input Arguments

Output

Example

In this example, we click on My Account of CrestShop web application. While using “ClickLink” keyword, you should ensure that you are using this keyword with a relevant keyword (like OpenBrowser) which can open your web application having respective link to be clicked upon.

ClickLink

Common Error conditions

ClickLinkInTableCell

This keyword clicks on a link inside any table cell. This keyword is mostly used in situations where you have dynamic links within your table cells. The text of link might change in different scenarios.

For example, you want to click on link available inside any table cell.

Input Arguments

Object Input Arguments

Required?

Description

Object

Yes

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

Data Input Arguments

Required?

Description

Row Index

Yes

Specify the Row number of the cell in which link appears.

Note: Row Index starts from zero.By default it takes ‘0’ for row index

 

Column Index

 

Yes

Specify the Column number of the cell in which link appears.

Note: Column Index starts from zero.By default it takes ‘0’ for column index

Object Index

Yes

Specify the index of link element inside column cell.

Note: Object Index of Link starts from zero.

Output

True

If the keyword passes successfully

False

If the keyword fails

True

If the keyword passes successfully

False

If the keyword fails

Example

For example if you want to click on an object named “News” on a webpage “https://sstsinc.com”, then you can use this keyword for clicking on the object by providing the object’s text to it.

In the example table above, if you want to click on “Number” link in 2nd Row 2nd column, here is how you will use this keyword.

ClickLinkInTableCell

Object 
<      Choose your Table Object From OR     >

Row Index

1

Column Index
1
Object Index
0

Common Error conditions

Scenarios

Error Message

Debug Information

If table object is not found

Object Not Found

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

If specified cell is not found

Argument Data Invalid

Given column not exist in table

OR

Given row not exist in table

If no link is found at specified object index

Argument Data Invalid

No Link found in the Table Cell

ClickOnObjectInTableCell

This keyword clicks on specified object available inside any table cell. It takes object, Row index, column index, tag and Tag Index as input argument.This keyword is mostly used in situations where you have to click on an object within your table cells. The type of object might change in different scenarios.

For example, you want to click on object available inside any table cell and perform action on it.

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 this link.

Data Input Arguments

Required?

Description

Row Index

Yes

Specify the Row number of the cell in which link appears.

Note: Row Index start from zero .

Column Index
Yes 

Specify the Column number of the cell in which link appears.

Note: Column Index start from zero .

Tag
Yes 

Specify tag of item

Tag Index
Yes 
specify the Index of object in table cell
Note: Indexing of object start from zero.

Output

True

If the keyword passes successfully

False

If the keyword fails

Example

In the example table above, if you want to click on “Your Name” editbox in 2nd Row last column, here is how you will use this keyword “ClickOnObjectInTableCell”.

ClickOnObjectInTableCell

Object 
<      Choose your Table Object From OR     >

Row Index

1

Column Index
1
Tag
INPUT
Tag Index
0

Common Error conditions

Scenarios

Error Message

Debug Information

If table object is not found

Object Not Found

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

If specified cell is not found
Argument Data Invalid
Given row not exist in table
If no object is found in the specified cell
Unsupported Operation
Given row does not exist in table cell

ClickTableCell

This keyword clicks on the specified object in a table cell.  

This keyword is mostly used in situations where you want to click on a specified object within your table cell. The element of the table cell might change in different scenarios. It takes an OR Object of table type as Object Input Argument and Row Index, column index, tag & Tag index as data input arguments.

For example, you want to click inside any table cell.

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 row number of the table where starting index is “0”.

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

Specify Object Tag.

Give the Tag value of parent object.

Tag Index
Yes

Specify the index of element in the table cell Tag Index of Link starts from zero.

Output

True

If the keyword passes successfully

False

If the keyword fails

Example

URL

Comments

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

This keyword clicks

on the specified

cell of the table.

In the example above, if you want to click in the Table cell Object Text Area “Your Comments”  then, use this keyword as shown below:

ClickTableCell

Object
<      Choose your Table Object From OR     >
Row Index
  1  
Column Index
    1   
Tag
     Text Area   
Tag 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 InValid object and 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.

Specified Object is not a table

ClickTableCellAndWait

This keyword clicks on the specified cell of table type object and wait for the specified time.

This keyword is mostly used in situations where you need to wait for some time after clicking in the table cell. The element of the table cell  might change in different scenarios. It takes an OR Object of table type as Object Input Argument and Row Index, column Index, tag, Tag Index, timeout as data input arguments.

For example, you want to click inside any table cell and wait.

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 row number of the table where starting index is “0”.

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

Specify Object Tag.

Give the Tag value of parent object.

Tag Index
Yes

Specify the index of element in the table cell Tag Index of Link starts from zero.

TimeOut
Yes
specify the time (in seconds) that the keyword should wait after clicking on the specified Object.

Output

True

If the keyword passes successfully

False

If the keyword fails

Example

URL

Comments

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

This keyword clicks on the specified cell of the table and then waits for the specific time.

In the example above, if you want to click in the Table cell Object Textarea “Your Comments”  and wait for specified time then, use this keyword as shown below:

ClickTableCellAndWait

Object
<      Choose your Table Object From OR     >
Row Index
  1  
Column Index
     1   
Tag
     Text Area   
Tag Index
     0  
Time Out
    5   

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.

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.

Specified Object is not table

CloseAllBrowsers

This keyword closes all the open browser sessions started by OpKey. It does not 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

Data

No

This keyword doesn’t take any data input argument.

Output

True

If the keyword passes successfully

False

If the keyword fails

Example

Browser

Browser Name

Comment

Browser 1

Browser 2

Mozilla Firefox

Google Chrome

In this example, CloseAllBrowsers keyword closes all browsers opened by OpKey.

Common Error conditions

Scenarios

Error Message

Debug Information

If given URLs in browsers are not valid

Browser: Mozilla Firefox

URL: bvmmn,m./,

Browser: Mozilla Firefox

URL: www.m,m.,m.,./?/

Conflicting Configuration (-14400)

2 instance(s) of WebDriver

existsClosing: about:blank&utm_

content=first

runClosing: https://www.m,m.,m.,./?/

Argument(s) : (Browser;URL) are blank.

If given browser names are not valid

Browser: nb,m.,

URL: www.opkey.com

Browser: nb,m.,

URL: www.opkey.com

Argument Data Invalid (-13300)

Please Reverify the BrowserName at OpenBrowser step.

plugin-unable-to-take-snapshot-

CloseBrowser

This keyword  closes  the currently opened browser session. It takes the browser title of the opened web application as data 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

Title

Yes

This keyword takes the Browser Title as  data input argument.

Output

It closes the web application running over the browser

If the keyword passes successfully

False

If the keyword fails

Example

Suppose you want to close the www.flipkart.com web application running over the mozilla Firefox web browser then you can use the keyword “Close Browser” as follows:

1.jpeg

CloseBrowser

Title

Online Shopping Site for Mobiles, Fashion, Books, Electronics, Home Appliances and More.   

Common Error conditions

Scenarios

Error Message

Debug Information

If browser name and URL of web application is not given.

Browser:

URL:

Object Input Argument: Object 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

When Blank Data Input Arguments are passed.

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.

Argument(s) :(Title) is/are blank.

CloseSelectedWindow

This keyword closes the selected window. It takes title name of the window to be closed as data 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

Title

Yes

Specify the Title of the window that has to be closed.

Output

It closes the given window

If the keyword passes successfully

False

If the keyword fails

Example

In the above  screenshot if you want to close the opened window on the browser, you can use “CloseSelectedWindow” keyword as follows:

CloseSelectedWindow

Title

Crestech

Common Error conditions

Scenarios

Error Message

Debug Information

When the Data Input Argument “Title ” is incorrect.

Title : Cres

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.

Actually Found : < CresConnect > and Expected :

When the Data Input Argument “Title ” has been left blank.

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.

Argument(s) Title is/are blank.

CopyFromClipBoard

This keyword copies the content from clipboard on the provided location like on editbox, textarea or in any  file.

This keyword is used in situations where you need to provide data in an editfield or file or textarea from clipboard. The text of clipboard might change in different scenario.

Note: Some data should be available in your clipboard.

For example,  if you want to type text on any editbox from data available in clipboard, you will use output of “CopyFromClipBoard” keyword as input of “TypeTextOnEditBox” keyword .

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

This keyword copies the content from clipboard on the provided location like on editbox, textarea or in any  file.

This keyword is used in situations where you need to provide data in an editfield or file or textarea from clipboard. The text of clipboard might change in different scenario.

If the keyword passes successfully

Data on clipboard is not fully string

If the keyword fails

Example

In the example above, if you want to type text on “FirstName” editbox using data from clipboard, here is how you will use this keyword.

Create a flow of TC/FL and add “CopyFromClipBoard” keyword and user is having data “opkey” in clipboard.

Create “StepOutput” variable (say “output1”) of this “CopyFromClipBoard” keyword .

Now add “TypeTextOnEditBox” keyword and use “output1” (output of above step) in DataInputArguments of this keyword.

The content of clipboard will be available on “Editbox” after execution.

Note: No error condition available for this keyword.

DeSelectAllDropDownItemsAndWait

This keyword deselects all previously selected items from the dropdown and waits for specified seconds.

This keyword is mostly used in situations where you need to remove all selection from a dropdown and then wait for specified seconds. Number of previously selected item in dropdown might change in different scenarios.

For example, you want to remove all selection from any dropdown and then wait for the time specified.

Input Arguments

Object Input Arguments

Required?

Description

Object

Yes

This Keyword takes one dropdown object input argument. You can choose the dropdown object from your Object Repository from which you want to deselect all items.

Data Input Arguments

Required?

Description

Timeout

Yes

Specify the time upto which you want to wait for object to be visible and operable.

Output

True

If the keyword passes successfully

False

If the keyword fails

Example

In the above screenshot, if you want to deselect all three selections  “Agatti Island”, “Agra” and “Ahmedabad”, here is how you will use “DeSelectAllDropDownItemsAndWait” keyword

DeSelectAllDropDownItemsAndWait

Object

<  Choose an Dropdown Object from the OR  > Here, Within India

TimeOut

10

Common Error conditions

Scenarios

Error Message

Debug Information

If dropdown object is not found

Object Not Found

Cannot locate element with text

If timeout not specified

Argument Data Missing

Argument are missing

DeSelectCheckBox

This keyword deselects the selected checkbox. It takes checkbox object as Object input argument but it doesn’t take any data 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

Data

No

This keyword doesn’t take any data input argument.

Output

True

If the keyword passes successfully

False

If the keyword fails

Example

Image

Comments

 

This keyword deselects the selected checkbox

In this example, “DeselectCheckBox” keyword deselects the selected checkbox . While using “DeselectCheckBox” keyword, you should ensure that you are using this keyword with a relevant keyword (like OpenBrowser) which can open your web application having checkbox to be cleared/unchecked.

DeSelectCheckBox

Object

<  Choose an CheckBox Object from the OR  > Here, CheckBox

Common Error conditions

Scenarios

Error Message

Debug Information

If OR object is not mapped with the

DeSelectCheckBox keyword.

Browser: Mozilla Firefox

URL: https://www.globalguideline.com

/JavaScript_Guide/preview.php?JScript=Check_box_selection_using_Form

Object Input Argument: No Object

Argument Data Missing (-13200)

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

 

If URL of web application is not given in OpenBrowser

Browser: Mozilla Firefox

URL:

Object Input Argument: Object Mapped

Argument Data Missing (-13200)

Insufficient Privileges (-14100)

Argument Data Missing (-13200)

Argument(s) : (URL) are blank

Either Browser was never Opened  or all WebDriver instances were closed

-plugin-unable-to-take-screenshot-

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

If browser name is not given in OpenBrowser

Browser:

URL: https://www.globalguideline.com

/JavaScript_Guide/preview.php?JScript=Check_box_selection_using_Form

Object Input Argument: Object Mapped

Argument Data Missing (-13200)

Insufficient Privileges (-14100)

Argument(s) : (URL) are blank

Either Browser was never Opened  or all WebDriver instances were closed

-plugin-unable-to-take-screenshot-

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

DeSelectCheckBoxAndWait

This keyword deselects the specified selected CheckBox and wait for the given time. It takes checkbox object and time (in seconds) to wait after clearing that checkbox.

Input Arguments

Object Input Arguments

Required?

Description

Object

Yes

This keyword takes checkbox object as object input argument.

Data Input Arguments

Required?

Description

TimeOut

Yes

This keyword takes timeout as data input argument.

Output

True

If the keyword passes successfully

False

If the keyword fails

Example

Image

Comments

Timeout : 10

This keyword deselects the specified selected CheckBox and wait for the given time.

In this example, this keyword deselects the selected “checkbox” and waits for the given timeout value. While using “DeSelectCheckBoxAndWait” keyword, you should ensure that you are using this keyword with a relevant keyword (like OpenBrowser) which can open your web application having checkbox to be cleared/unchecked.

DeSelectCheckBoxAndWait

Object

<  Choose an CheckBox Object from the OR  > Here, CheckBox

TimeOut 
                                           10 

Common Error conditions

Scenarios

Error Message

Debug Information

When timeout value is not given.

Browser: Mozilla Firefox

URL: https://www.globalguideline.com

/JavaScript_Guide/preview.php?JScript=Check_box_selection_using_Form

Object Input Argument: Object Mapped

Object Input Argument: Timeout Null

Argument Data Missing (-13200)

Argument(s) : (Timeout) are blank

 

If Object and Timeout value is not given

Browser: Mozilla Firefox

URL: https://www.globalguideline.com

/JavaScript_Guide/preview.php?JScript=Check_box_selection_using_Form

Object Input Argument:

Object Input Argument: Timeout Null

Argument Data Missing (-13200)

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

If browser name and

URL of web application is not given.

Browser:

URL:

Argument Data Missing (-13200)

Insufficient Privileges (-14100)

Argument(s) : (URL) are blank

Either Browser was never Opened  or all WebDriver instances were closed

DeSelectDropDownItem

This keyword deselects the previously selected item from a dropdown and reset the object to it’s default value. This keyword takes dropdown object and value to be deselected as Data Input Arguments.

Input Arguments

Object Input Arguments

Required?

Description

Object

Yes

This keyword takes dropdown object as object input argument.

Data Input Arguments

Required?

Description

Item String

Yes

Specify the Item to be deselected from the dropdown.

Output

True

If the keyword passes successfully

False

If the keyword fails

Example

Image

Comments

 

This keyword deselects the selected value “1″ from the dropdown

In the example screenshot, if you want to deselect the selected item “1” from the dropdown list and reset the object to it’s default value. Then you can use “DeSelectDropDownItem” as follows.

DeSelectDropDownItem

Object

<  Choose an DropDown Object from the OR  > Here, Within India

ItemString
                         1

While using this keyword, you should ensure that you are using this keyword with a relevant keyword (like OpenBrowser) which can open your web application having dropdown list of items.

Common Error conditions

Scenarios

Error Message

Debug Information

If Object in Object input argument and ItemString in Data input argument is not given

Browser: Mozilla Firefox

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

CrestShop/

Object Input Argument: Object not given

Data Input Argument: Item not given

Argument Data Missing (-13200)

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

If browser name and URL of web application is not given.

Browser:

URL:

Object Input Argument: Object given

Data Input Argument: Item given

Argument Data Missing (-13200)

Insufficient Privileges (-14100)

Argument(s) : (URL) are blank

Either Browser was never Opened  or all WebDriver instances were closed

-plugin-unable-to-take-screenshot-

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

DeSelectDropDownItemAndWait

This keyword deselects the previously selected items from a dropdown and reset the object to it’s default value and waits for the given timeout. This keyword takes dropdown object as Object Input argument and timeout as Data Input argument.

Input Arguments

Object Input Arguments

Required?

Description

Object

Yes

This keyword takes dropdown object as object input argument.

Data Input Arguments

Required?

Description

ItemString
Yes
Specify the Item to be deselected from the dropdown.

Timeout

Yes

Specify time in seconds.

Output

True

If the keyword passes successfully

False

If the keyword fails

Example

Image

Comments

Timeout = 10

This keyword deselects the specified selected items from a dropdown and waits for specified time.

In the above screenshot, If you want to deselects the selected item “1” and then waits for the given timeout then this is how you will use “DeSelectDropDownItemAndWait” keyword .

DeSelectDropDownItemAndWait

Object

<  Choose an DropDown Object from the OR  > Here, Within India

ItemString
  1
TimeOut
10

While using “DeSelectDropDownItemAndWait” keyword, you should ensure that you are using this keyword with a relevant keyword (like OpenBrowser) which can open your web application having dropdown list of items.

Common Error conditions

Scenarios

Error Message

Debug Information

If timeout and Item String is not given in

Data input argument

Browser: Mozilla Firefox

URL: https://www.crestechsoftware.

com/CrestShop/

Object Input Argument: Object given

Data Input Argument: Timeout not given

Argument Data Missing

Argument(s) : (Timeout) are blank

If browser name and URL of web application is not given.

Browser: Mozilla Firefox

URL: https://www.crestechsoftware.com

/CrestShop/

Object Input Argument: Object Not given

Data Input Argument: Item given

Data Input Argument: Timeout given

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

DeSelectMultipleDropDownItem

This keyword deselects specified items from multi dropdown object.

This keyword is mostly used in situations where you need to remove few items  from a multi dropdown object.The Number of item you want to deselect from multi dropdown might change in different scenarios.

For example, you want to deselect two item from the multiple selected dropdown items.

Input Arguments

Object Input Arguments

Required?

Description

Object

Yes

This Keyword takes one multi dropdown object input argument. You can choose the multi dropdown object from your Object Repository from which you want to deselect several items.

Data Input Arguments

Required?

Description

ItemString

Yes

Specify the name of item which you want to deselect.

Note: You can provide more than one item by separating them from delimiter(for ex delimiter can be colon ’:’,semicolon ’;’ etc.)

Output

True

If the keyword passes successfully

False

If the keyword fails

Example

In the Multiple selection dropdown above, if you want to deselect two selections  “Agartala” and “Agatti Island”, here is how you will use this keyword “DeSelectMultipleDropDownItem”.

DeSelectMultipleDropDownItem

 Object

<  Choose an  DropDown Object from the OR  > Here, Within India

ItemString

Agartala; Agatti Island

Note: Delimiter can be ‘;’ , ‘:’ etc.

Common Error conditions

Scenarios

Error Message

Debug Information

If dropdown object is not found

Object Not Found

Cannot locate element with text

If ItemString specified is blank or incorrect

Text Not Found

Expected item does not exist among selected option

DeSelectMultipleDropDownItemInTableCell

This keyword deselects specified items from multi dropdown object placed inside a table cell. If there are multiple items selected and user need to deselect two items then user needs to use this keyword twice, once for each item to be deselected. This keyword is mostly used in situations where you want to deselect multiple selected items in table cell before performing any action on it. For example, you want to deselect the selected items in table cell.

Input Arguments

Object Input Arguments

Required?

Description

Object

Yes

This Keyword takes one table object input argument. You can choose the table 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.

Object Index
Yes
Specify the index. Starting index must be zero.
Value
Yes
This Keyword takes the text value which is selected in dropdown.

Note: Index Value must start from ‘0’ onwards.

Output

True

If the keyword passes successfully

False

If the keyword fails

Example

1.jpg

In the above Screenshot, if you wish to deselect “Opel” from the multi dropdown then you can use this keyword “DeSelectMultipleDropDownItemInTableCell” as follows:

DeSelectMultipleDropDownItemInTableCell

Object
<   Choose your table object from OR   >
Row Index
0
Column Index
0
Object Index
0
Value
Opel

Common Error conditions

Scenarios

Error Message

Debug Information

If no object is selected

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

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.

If Object is Provided but Data input argument is not Provided
Argumemt(s) : (Row Index;Column Index;Index;Value) are blank.

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.

If Object is not Provided but Index Value is Provided
Data not provided for argument: ‘Object’. Expected StaticValue was empty.

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.

If Index data is wrong

Expected item does not exist among selected option(s)


Actually Found :<> and Expected :<6646>

Text Not Found (-11300)

DESCRIPTION:

No object could be located on the currently active page/view with the matching text. This happens mostly when the page is not properly loaded or the view is not properly rendered. It might happen with a misspelled argument to the keyword.

DismissPopUp

This keyword removes currently available popup on browser.

This keyword is mostly used in situations where we don’t have any information about title of the pop up and you can dismiss such pop up using “DismissPopup” keyword. It don’t require any Object input argument as well as any Data 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 the keyword fails

Example

In the screenshot above, if you want to remove this pop up “Message from webpage” , you can use “DismissPopup” keyword. It removes any available pop from the active window.

Common Error conditions

Scenarios

Error Message

Debug Information

If popup not found on browser

Unsatisfied Dependencies

Popup not found

DoubleClick

This keyword double clicks on the specified object. It takes one object as input argument.

Input Arguments

Object Input Arguments

Required?

Description

Object

Yes

This keyword takes one object as 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 the keyword fails

Example

Image

Comments

 

In this web page, this keyword double clicks on the Double click me button to perform the desired action.

In the above screenshot, we will double click on “Double-click me” button to perform the desired action. While using Doubleclick keyword, you should ensure that you are using this keyword with a relevant keyword (like OpenBrowser) which can open your web application having a button in which double click is accepted.

DoubleClick

Object

< Choose your object from Object Repository > Here, Double-click me

Common Error conditions

Scenarios

Error Message

Debug Information

When Browser Name & URL are not given.

Browser:

URL:

Object Input Argument: Double click me

Argument Data Missing (-13200)

Insufficient Privileges (-14100)

Either Browser was never Opened  or all WebDriver instances were closed

-plugin-unable-to-take-screenshot-

If Valid object Input argument is provided

Browser: Mozilla Firefox

URL: https://www.w3schools.com/tags/tryit.asp?filename=tryhtml5_ev_ondblclick

Object Input Argument: Double click me

Done
Not Available.
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 StaticValue was empty.

DoubleClickAndWait

This keyword double clicks on an object and waits for the specified time after double click.

Input Arguments

Object Input Arguments

Required?

Description

Object

Yes

This keyword takes one object as object input argument.

Data Input Arguments

Required?

Description

Time out

Yes

This keyword takes timeout value as data input argument.

Output

True

If the keyword passes successfully

False

If the keyword fails

Example

Image

Comments

 

In this web page, this keyword double clicks on the Double click me button and waits for 10 seconds to perform the desired action.

In the above screenshot, if you want to double click on Double click me button and then wait for the specified time then you can use “DoubleClickAndWait” keyword as follows:

DoubleClickAndWait

Object

< Choose your object from Object Repository > Here, Double-click me

Time Out 
10

While using this keyword, you should ensure that you are using this keyword with a relevant keyword (like OpenBrowser) which can open your web application having a object in which double click is accepted.

Common Error conditions

Scenarios

Error Message

Debug Information

When timeout value is not given.

Browser: Mozilla Firefox

URL: https://www.globalguideline.com

/JavaScript_Guide/preview.php?JScript=Check_box_selection_using_Form

Object Input Argument: Object Mapped

Object Input Argument: Timeout Null

Argument Data Missing (-13200)

Argument(s) : (Timeout) are blank

 

If Object and Timeout value is not given

Browser: Mozilla Firefox

URL: https://www.globalguideline.com

/JavaScript_Guide/preview.php?JScript=Check_box_selection_using_Form

Object Input Argument: Timeout Null

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

If browser name and URL of web application is not given.

Browser:

URL:

Object Input Argument: Object Mapped

Object Input Argument: Timeout 2

Argument Data Missing (-13200)

Insufficient Privileges (-14100)

Argument(s) : (URL) are blank

Either Browser was never Opened  or all WebDriver instances were closed

-plugin-unable-to-take-screenshot-

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

DoubleClickAt

This keyword double clicks on object according to specified co-ordinates.

This keyword is used in situations where you want to double click on Object according to its position on web page, when we are not able to identify that object.

For Example: you want to double 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

Co-ordinates

Yes

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

Output

True

If the keyword passes successfully

False

If the keyword fails

Example

In the example screenshshot, if you need to double click on “Click to log events” button, then provide (X;Y) co-ordinates of this button from web page, then you can use the keyword “DoubleClickAt” as follows:

DoubleClickAt

Object

< Choose your object from Object Repository > Here, Click to log events

Coordinates
50;60

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

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

DoubleClickButton

This keyword double clicks on specified button object. It takes a button object as input argument.

Input Arguments

Object Input Arguments

Required?

Description

Object

Yes

This keyword takes button object as 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 the keyword fails

Example

Image

Comments

 

In this web page, this keyword double clicks on the button “Double click me” button to perform the desired action.

In the above screenshot, if you want to double click on “Double click me” button to perform the desired action then here is how you will use “DoubleclickButton” keyword.

DoubleClickButton

Object

< Choose your button object from Object Repository > Here, Double Click Me

While using this keyword, you should ensure that you are using this keyword with a relevant keyword (like OpenBrowser) which can open your web application having a button in which double click is accepted.

Common Error conditions

Scenarios

Error Message

Debug Information

When Browser Name & URL are not given.

Browser:

URL:

Object Input Argument: Double click me

Argument Data Missing (-13200)

Insufficient Privileges (-14100)

Either Browser was never Opened  or all WebDriver instances were closed

-plugin-unable-to-take-screenshot-

If Valid object Input argument is provided

Browser: Mozilla Firefox

URL: https://www.w3schools.com/tags/tryit.asp?filename=tryhtml5_ev_ondblclick

Object Input Argument: Double click me

 

Done

 

Not Available.

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 StaticValue was empty.

DoubleClickImage

This keyword double clicks on the specified image object. This keyword is mostly used when user want to double click on the image. It takes one Image object as object input arguments.

Input Arguments

Object Input Arguments

Required?

Description

Object

Yes

This Keyword takes image object from OR

Data Input Arguments

Required?

Description

Data

No

This keyword doesn’t take any data input argument.

Output

It double clicks on the given image object.

If the keyword passes successfully

False

If the keyword fails

Example

ClickImage.jpg

If you wish to double click on the highlighted image then here is how you will use “DoubleClick Image” keyword.

DoubleClickImage

Object

<   Choose your Image Object From OR   >

Common Error conditions

Scenarios

Error Message

Debug Information

When object is not 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.

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

When Browser name & URL are not given

Browser:

URL:

Object Input Argument: Given

Insufficient Privileges (-14100)

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

-plugin-unable-to-take-screenshot-

Either Browser was never Opened  or all WebDriver instances were closed

DoubleClickTableCell

This keyword double clicks on the specified cell of table type object .This keyword is mostly used in situations where you have any clickable web element within your table cell and you require to double click on it. The element of the table cell  might change in different scenarios. It takes an OR Object of table type as Object Input Argument and Row Index, column index, tag & index as data input arguments.

For example, you want to double click inside any table cell.

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 row number of the table where starting index is “0”.

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

Specify Object Tag.

Give the Tag value of parent object.

Object Index
Yes

Specify the index of element in the table cell Object Index of Link starts from zero.

Output

True

If the keyword passes successfully

False

If the keyword fails

Example

URL

Comments

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

This keyword double clicks on the specified cell of the table.

In the example above, if you want to click in the Table cell Object Textarea “Your Comments”  and wait for specified time then, use this keyword as shown below:

ClickTableCell

Object
Here, L
Row Index
<   1  >
Column Index
 <    1   >
Tag
<     Text Area   >
Object 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 Valid object and blank Data Input Arguments are provided.

Row Index :   1

Column Index : 1

Tag                   :  

Index   :

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.

Arguments Tag/Index is/are blank.

DragAndDrop

This keyword drags the specified object and drops it to the given coordinates. It takes OR object and the coordinate (separated by semicolon) as input parameter. This keyword is mostly used in situations where you want to drag an object from one place to another, anywhere on the webpage.

For example, you want to drag a ball from one place and drop it to some other place.

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 which you want to drag and drop.

Data Input Arguments

Required?

Description

Co-ordinates

Yes

Specify the co-ordinates where you want to Drag/Drop object.

Note: Give the co-ordinates of web page from where you want to drag and drop

Output

True

If the keyword passes successfully

False

If the keyword fails

Example

URL

Comments

 https://way2automation.com/way2auto_jquery/droppable.php

This keyword drags the specified object and drops it to the mentioned coordinates.

In the example, you want to drag the Square Box Object “ Drag me to my target”  from one place and drop it to the other place “Dropped” , here is how you will use this keyword:

DragAndDrop

Object
<   Choose the Object From OR  that has to be dragged   >
Coordinates
100;7 0

Note : The coordinates have to be separated by a semicolon.

Here is how you will get the output:

2.png

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.

If web page is different
Object Not Found
Object Not Found

 

If object is different
Object Not Found
Object Not Found

DragAndDropAndWait

This keyword drags the specified object and drops it to given coordinates. This keyword takes OR object, coordinates (separated by semicolon) and time as input parameter.

This keyword is mostly used in situations where you want to drag an object from one place to another and then it will wait for specified seconds.

For example, you want to drag a ball from one place and drop it to some other place.

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 which you want to drag and drop it.

Data Input Arguments

Required?

Description

Co-ordinates

Yes

Specify the co-ordinates where you want to Drag/Drop object.

Note: Give the co-ordinates of web page from where you want to drag and drop.

Timeout
Yes

Specify the time (in seconds).

Note: It takes only Integer value. Also the Data Input Argument timeout should be less than Step timeout.

Output

True

If the keyword passes successfully

False

If the keyword fails

Example

URL

Comments

 https://way2automation.com/way2auto_jquery/droppable.php

This keyword drags the specified object and drops it to the mentioned coordinates and waits for specified seconds.

In the example, you want to drag the Square Box Object “ Drag me to my target”  from one place and drop it to the other place “Dropped” square box  and then half the screen for specified seconds then , here is how you will use this keyword:

DragAndDropAndWait

Object
<   Choose the Object From OR  that has to be dragged   >
Coordinates
100;7 0
TimeOut
10

Note : The coordinates have to be separated by a semicolon.

Here is how you will get the output:

2.png

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.

If webpage is different
Object Not Found
Object Not Found
If object is different
Object Not Found
Object Not Found
If you provide invalid timeout
Step Timed Out
Step timed out. System waited for 40sec.
If you provide null timeout
Argument Data Missing
Argumemt(s) : (Timeout) are blank.

Enter

This keyword presses the Enter key. This keyword does not take any input parameter. This keyword is mostly used in situations where action needs to be performed by pressing enter key.

For example, you want to search an object on a website and you want that when popup should appear OK will be clicked.

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 the keyword fails

Example

If you want to search an object on a website and you want that when popup appears OK will be clicked.

Common Error conditions

Scenarios

Error Message

Debug Information

If  no URL is provided.

Insufficient Privileges .

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

FocusButton

This keyword sets Focus on the specified button. This keyword takes button object as input argument.

Input Arguments

Object Input Arguments

Required?

Description

Object

Yes

This keyword takes editbox 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 the keyword fails

Example

URL

Comments

 

This keyword focuses on the specified button.

In this example, this keyword focuses on the specified button. While using this keyword, you should ensure that you are using this keyword with a relevant keyword (like OpenBrowser) which can open your web application having button to be focused.

Common Error conditions

Scenarios

Error Message

Debug Information

When object to be focused is not given

Browser: Mozilla Firefox

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

Object Input Argument: Object Not given

Argument Data Missing (-13200)

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

If browser name and URL of web application is not given.

Browser:

URL:

Object Input Argument: Object given

Insufficient Privileges (-14100)

Either Browser was never Opened  or all WebDriver instances were closed

 

-plugin-unable-to-take-screenshot-

Argument(s) : (Browser;URL) are blank.

FocusCheckBox

This keyword sets Focus on the specified checkbox. This keyword takes checkbox object as 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 the keyword fails

Example

URL

Comments

 

This keyword sets the focus on the mapped checkbox available on the web application.

While using this keyword, you should ensure that you are using this keyword with a relevant keyword (like OpenBrowser) which can open your web application having respective checkbox.

Common Error conditions

Scenarios

Error Message

Debug Information

When object is not given

Browser: Mozilla Firefox

URL: https://cresconnect.crestechglobal.com/home.php

Object Input Argument: Not given

Argument Data Missing (-13200)

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

When browser name & URL of web application are not given

Browser:

URL:

Object Input Argument: Mapped

Argument Data Invalid (-13300)

Insufficient Privileges (-14100)

Either Browser was never Opened  or all WebDriver instances were closed

FocusRadioButton

This keyword sets focus to the specified Radio button. This keyword takes Radiobutton object as 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 the keyword fails

Example

URL

Comments

 

This keyword focuses on the specified radio button.

Common Error conditions

Scenarios

Error Message

Debug Information

When object is not given.

Browser: Mozilla Firefox

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

Object: No Object

Argument Data Missing (-13200)

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

When URL & Browser name are not given

Browser: Mozilla Firefox

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

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-

GetTextFromTableCellByQuery

This keyword fetches Text from the specified cell of the table using query. It takes one table type object as object input arguments.

For GetTextFromTableCellByQuery  Keyword:

Input Arguments

Object Input Arguments

Required?

Description

Object

Yes

This Keyword takes one table object as  Object Input Argument. You can select a Table Object from the Object Repository whose cell data  has to be fetched by Query.

Data Input Arguments

Required?

Description

Column Name/Index

Yes

Specify the column name or index whose Text in the specified cell has to be fetched.

Object

Index

Yes

Specify the position of the object inside the Table cell. Index starts from ‘0’
Header 1
Yes
Specify the header of the column by which you can uniquely identify the table cell whose text has to be fetched.
Value 1
Yes
Specify the Value of the column cell by which you can uniquely identify the table cell whose text has to be fetched.

Output

True

If the keyword passes successfully

False

If the keyword fails

Example

URL

Comments

 

This keyword  fetches text from the specified table cell.

In the above Screenshot, if you want to fetch text from Table cell whose value is  “hi1”  , you can do so by using GetTextFromTableCellByQuery  keyword as follows:

GetTextFromTableCellByQuery  

Column Name/Index

Hello 2

Object Index

0

Header 1

Hello3

Value 1

hi2

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

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.

Index is invalid.
When Invalid Object Input Arguments are provided other than 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.

Specified Object is not Table

GoBackAndWait

This keyword navigates back to previous page. This keyword doesn’t take any input parameter.

This keyword is mostly used in situations when you want to go back on previous web page and then it will wait for specified seconds.

Input Arguments

Object Input Arguments

Required?

Description

Object

No

This keyword doesn’t take any object input argument.

Data Input Arguments

Required?

Description

Timeout

Yes

Specify the time (in seconds).

Note: It takes only Integer value. Also the Data Input Argument timeout should be less than Step timeout in Advance Execution.

Output

True

If the keyword passes successfully

False

If the keyword fails

Example

If you click on any link and now you want to go back on previous page and wait for specified time.

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 you provided invalid timeout
Step Timed Out
Step timed out. System waited for 40sec.
If you provide null timeout
Argument Data Missing
Argument(s) : (Timeout) are blank.

GoForward

This keyword navigates forward to next browser page. This keyword does not take any input parameter.

This keyword is mostly used in situations where you want to navigate to next webpage from the current 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 the keyword fails

Example

In the example below:

1. Navigate to https://www.flipkart.com

2. Then click on mobile link which will redirect to https://www.flipkart.com/mobiles?otracker=hp_nmenu_quicklinks_Mobiles

3. Use GoBackAndWait Keyword to move to the previous page i.e. https://www.flipkart.com

4. Use GoForward Keyword to navigate to the next webpage from the current webpage i.e. https://www.flipkart.com/mobiles?otracker=hp_nmenu_quicklinks_Mobiles

Note :Goforward keyword can only be used in sequence with GoBackAndWait 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

GoForwardAndWait

This keyword navigates forward to next browser page and waits for specified time. This keyword takes time (sec) as input parameter.

This keyword is mostly used in situations where you want to navigate to next webpage from the current web page  and then it will wait for specified seconds.

Input Arguments

Object Input Arguments

Required?

Description

Object

No

This keyword doesn’t take any object input argument.

Data Input Arguments

Required?

Description

Timeout

Yes

Specify the time (in seconds).

Note: It takes only Integer value. Also the Data Input Argument timeout should be less than Step timeout in Advance Execution

Output

True

If the keyword passes successfully

False

If the keyword fails

Example

In the example below:

Navigate to https://www.flipkart.com

Then click on mobile link which will redirect to https://www.flipkart.com/mobiles?otracker=hp_nmenu_quicklinks_Mobiles

Use GoBackAndWait Keyword to move to the previous page i.e. https://www.flipkart.com

Use GoForwardAndWait Keyword to navigate to the next webpage from the current webpage i.e. https://www.flipkart.com/mobiles?otracker=hp_nmenu_quicklinks_Mobiles

Then it will wait for specified time (in seconds)

Note :GoforwardAndWait keyword can only be used in sequence with GoBackAndWait 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

If you provide invalid timeout
Step Timed Out
Step timed out. System waited for 40sec.
If you provide null timeout
Argument Data Missing
Argumemt(s) : (Timeout) are blank.

HighlightObject

This keyword highlights the specified object. This keyword takes object as input parameter.

This keyword is mostly used in situations where you want that the object you specified gets  highlighted.

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 which you want to highlight.

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 the keyword fails

Example

If you are not able to find any specific object here you can use this keyword to highlight the specified object, here is how you can use this keyword:

HighLightObject

Object

< Choose the object which you want to highlight >

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.

KeyLeft

This keyword presses left Arrow Key of keyboard. This keyword does not 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

No

No

This keyword doesn’t take any data input argument.

Output

True

If the keyword passes successfully

False

If the keyword fails

Example

URL

Comments

 

This keyword presses left Arrow Key of keyboard.

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-

KeyPressNative

This keyword is used to sendkeys (TAB, ENTER etc.). This keyword takes keys without curly braces as input parameter.

This keyword is mostly used in situations where you want that keyboard keys should be used without using keyboard.

Input Arguments

Object Input Arguments

Required?

Description

Object

No

This keyword doesn’t take any object input argument.

Data Input Arguments

Required?

Description

KeyName

Yes

Specify the Key name.

Note: Give the keys which are on keyboard.

Output

True

If the keyword passes successfully

False

If the keyword fails

Example

For example,  If any pop up appears and OK button is required to be clicked then you can use this keyword passing KeyName as ENTER and if you want to shift the focus from OK button to CANCEL button, you can pass TAB as keyName.

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.

KeyRight

This keyword presses Right Arrow Key of keyboard. This keyword does not 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

No

No

This keyword doesn’t take any data input argument.

Output

True

If the keyword passes successfully

False

If the keyword fails

Example

URL

Comments

 

This keyword presses Right Arrow Key of the keyboard.

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-

MaximizeBrowser

This keyword maximizes the current browser. This keyword does not 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

No

No

This keyword doesn’t take any data input argument.

Output

True

If the keyword passes successfully

False

If the keyword fails

Example

URL

Comments

 

This keyword maximizes 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-

MouseHover

This keyword hovers mouse on specified OR object. It takes OR object as input argument.

Input Arguments

Object Input Arguments

Required?

Description

Object

Yes

This keyword takes 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 the keyword fails

Example

URL

Comments

 

This keyword hovers mouse on the mapped object available on the given web application.

In this example, this keyword hovers mouse on the mapped button object. While using this keyword, you should ensure that you are using this keyword with a relevant keyword (like OpenBrowser) which can open your web application having button to be clicked.

Common Error conditions

Scenarios

Error Message

Debug Information

When No object is mapped.

Browser: Mozilla Firefox

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

Object Input Argument: No Object Mapped

Argument Data Missing (-13200)

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

If browser name and URL of web application is not given.

Browser:

URL:

Object Input Argument: Object Mapped

Argument Data Missing (-13200)

Insufficient Privileges (-14100)

 

Argument(s) : (URL) are blank

Either Browser was never Opened  or all WebDriver instances were closed

-plugin-unable-to-take-screenshot-

MouseHoverOnText

This Keyword hovers the mouse  on the specified text. It takes one object as object input argument and Text To Search, Partial Text, and Index as data input argument.

Input Arguments

Object Input Arguments

Required?

Description

Object

No

Not Required

Data Input Arguments

Required?

Description

Text To Search

Yes

Provide Text on which Action has to be performed

Partial Text
Yes
Provide True if text to search is partial Text
Index
Yes

Specify the Index of the object on which mouse has to be hovered

Output

True

If the keyword passes successfully

False

If the keyword fails

Example

URL

Comments

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

This keyword  hovers the mouse on the text of the  object in the table cell (1,1).

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

MouseHoverOnText

Text To Search

<   Baahubali  >

Partial Text

<   True  >

Index
<  0  >

Common Error conditions

Scenarios

Error Message

Debug Information

When Invalid data input argument is 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.

Index is invalid .

when Blank data Input arguments are  provided

Step Timed Out (-12200)

 

DESCRIPTION:

The step took too long to execute. Maximum time a keyword is allowed to take is defined by the timeout field in the execution initiation form. A timeout mostly indicates an unresponsive plugin or busy resource.

Step(#2) Time Out system waited for 90 Sec

OpenBrowser

This keyword opens the website of given URL on specified browser. This keyword takes Browser name & URL as data 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

String

Yes

This keyword takes Browser & URL as data input arguments.

Output

True

If the keyword passes successfully

False

If the keyword fails

Example

URL

Comments

 

This keyword opens the given website on given browser.

Common Error conditions

Scenarios

Error Message

Debug Information

When URL is not given

Browser: Mozilla Firefox

URL:

Argument Data Missing (-13200)

Argument(s) : (URL) are blank.

-plugin-unable-to-take-screenshot-

When Browser name is not given

Browser:

URL: https://cresconnect.crestechglobal.com/home.php

 

Argument Data Missing (-13200)

Argument(s) : (URL) are blank.

-plugin-unable-to-take-screenshot-

PressTAB

This keyword presses TAB key. This keyword does not 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

No

No

This keyword doesn’t take any data input argument.

Output

True

If the keyword passes successfully

False

If the keyword fails

Example

URL

Comments

 

This keyword presses TAB key which performs the corresponding action of pressing TAB key.

Common Error conditions

Scenarios

Error Message

Debug Information

When URL is not given

Browser: Mozilla Firefox

URL:

Insufficient Privileges (-14100)

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.idbi.com/newautoloan.asp

Argument Data Missing (-13200)

Insufficient Privileges (-14100)

Either Browser was never Opened  or all WebDriver instances were closed

-plugin-unable-to-take-screenshot

RefreshAndWait

This keyword refreshes the browser page and waits for the given timeout. This keyword takes timeout (in seconds) to wait after refreshing the page.

Input Arguments

Object Input Arguments

Required?

Description

Object

No

This keyword doesn’t take any object input argument.

Data Input Arguments

Required?

Description

Yes

Yes

This keyword takes timeout value as data input argument.

Output

True

If the keyword passes successfully

False

If the keyword fails

Example

URL

Comments

https://cresconnect.crestechglobal.com/home.php

Timeout = 2

This keyword refreshes the opened browser and wait for the given timeout.

Common Error conditions

Scenarios

Error Message

Debug Information

When URL is not given

Browser: Mozilla Firefox

URL:

Data Input Argument: 2

Argument Data Missing (-13200)

Argument(s) : (Timeout) are blank.

When Browser name is not given

Browser:

URL: https://cresconnect.crestechglobal.com/home.php

Data Input Argument: 2

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 timeout value is not given

Browser: Mozilla Firefox

URL: https://cresconnect.crestechglobal.com/home.php

Data Input Argument:

Argument Data Missing (-13200)
Argument(s) : (Timeout) are blank.

RefreshBrowser

This keyword refreshes the current browser session. This keyword does not 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

No

No

This keyword doesn’t take any data input argument.

Output

True

If the keyword passes successfully

False

If the keyword fails

Example

URL

Comments

https://cresconnect.crestechglobal.com/home.php

Timeout = 2

This keyword refreshes the opened browser.

Common Error conditions

Scenarios

Error Message

Debug Information

When URL is not given

Browser: Mozilla Firefox

URL:

Argument Data Missing (-13200)

Argument(s) : (Timeout) are blank.

When Browser name is not given

Browser:

URL: https://cresconnect.crestechglobal.com/home.php

Argument Data Missing (-13200)

Argument(s) : (URL) are blank.

-plugin-unable-to-take-screenshot-

ReportMessage

This keyword prints the message specified  by user with True/False status. It takes message to be displayed for any true condition  or False condition as per the requirement.

Input Arguments

Object Input Arguments

Required?

Description

Object

No

This keyword doesn’t take any object input argument.

Data Input Arguments

Required?

Description

Message

Yes

It takes any message to be displayed

Status
Yes
Specify the Status that can either be True or False.

Output

It prints the given message with True or False status

If the keyword passes successfully

False

If the keyword fails

Example

Let us consider a Test Case which has “TypeTextAndWait”  as the Test Step. Save the Output of this Test Step in an Output Variable “Out1” Now, if this Test Step passes successfully [Output is True] then the user wants to display a message: “ Congratulations ! The Text has been saved successfully”.

For this, the user will use the Keyword “ReportMessage” as follows

ReportMessage

Message

Congratulations !  The Text has been saved successfully

Status

Out1[True]

Note:

Out1 is the Output of the “TypeTextAndWait” keyword  which must  be True so as to display the given message.

Common Error conditions

Scenarios

Error Message

Debug Information

When the Data Input

Argument

Message” has been

left blank.

Message :

Status : True

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 t

he 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.

Argument(s)

message

is/are blank

When you have

given the

Value of

Data Input

Arguments

manually

as follows:

Message: Data

Saved !

Status : False

Failure Asserted by User (-17100)

DESCRIPTION:

This happens when

user force the error to occur.

Data Saved !

ReturnConcatenate

This keyword concatenates the specified strings. It can take upto three strings only as input parameter. This keyword takes String1, String2, String3 as data 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

String

Yes

(String 1, String 2, String 3)

Output

It returns the concatenated string value.

If the keyword passes successfully

False

If the keyword fails

Example

We can use  the Return Concatenated keyword as follows:

ReturnConcatenated

String 1

22

String 2

33

String 3
44

Common Error conditions

There are no negative scenarios as it always returns true.

RightClickOnObject

This keyword Right clicks on object. This keyword is mostly used in situations where you want to perform a Right Click on provided Object before performing any action on it.

For example, you want to Click Right on Object.

Input Arguments

Object Input Arguments

Required?

Description

Object

Yes

This Keyword takes one object input argument. You need to select the any Object whom you want perform Right Click.

Data Input Arguments

Required?

Description

Index

Yes

This Keyword takes Index of the object in numerals.

Output

True

If the keyword passes successfully

False

If the keyword fails

Example

C:Userspallavi.goelPicturesRight.png

In the example above, if you want to right click on Find Flights Object, here is how you will use this keyword

Common Error conditions

Scenarios

Error Message

Debug Information

If no object is selected

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

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.

If Object is Provided but Index is not Provided
Argument(s): (Index) are blank.

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.

If Object is not Provided but Index Value is Provided
Data not provided for argument: ‘Object’. Expected StaticValue was empty.

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.

If Index data is wrong
Object not Found

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.

SelectCheckBox

This keyword checks/unchecks the specified checkbox as per given value (ON/OFF). It takes checkbox Object and value (ON/OFF) as input argument. If the input argument value is “ON” then it ensures that checkbox must be checked. Similarly, if the input argument value is “OFF” then it ensures that checkbox must be unchecked, regardless it’s already checked or unchecked.

Input Arguments

Object Input Arguments

Required?

Description

Object

Yes

This keyword takes object as object input argument.

Data Input Arguments

Required?

Description

String

Yes

This keyword takes ON/OFF as data input argument.

Output

True

If the keyword passes successfully

False

If the keyword fails

Example

Image

Comments

 

This keyword checks the specified checkbox on the given web page.

In this example, this keyword clicks on the mapped checkbox object of the web application. While using this keyword, you should ensure that you are using this keyword with a relevant keyword (like OpenBrowser) which can open your web application having checkbox to be checked.

Common Error conditions

Scenarios

Error Message

Debug Information

If ON/OFF value is not given in data input argument.

Browser: Mozilla Firefox

URL: Given

Object Input Argument: Mapped

Data Input Argument: No Value

Argument Data Missing (-13200)

Argument(s) : (Value) are blank.

If OR object is not mapped with the SelectCheckBox keyword.

Browser: Mozilla Firefox

URL: Given

Object Input Argument: No Object

Data Input Argument: ON

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

If browser name & URL of web application (or Both) are not given in input argument.

Browser:

URL:

Object Input Argument: Object Mapped

Data Input Argument: ON

Argument Data Missing (-13200)
Argument(s) : (Browser;URL) are blank.

SelectCheckBoxAndWait

This keyword checks/unchecks the specified checkbox and waits for the given time (in seconds). It takes checkbox Object as Object Input Argument and value (ON/OFF) as Data  input argument. If the input argument value is “ON” then it ensures that checkbox must be checked. Similarly, if the input argument value is “OFF” then it ensures that checkbox must be unchecked, regardless it’s checked or unchecked.

Input Arguments

Object Input Arguments

Required?

Description

Object

Yes

This keyword takes object as object input argument.

Data Input Arguments

Required?

Description

String

Yes

This keyword takes ON/OFF as data input argument.

Output

True

If the keyword passes successfully

False

If the keyword fails

Example

Image

Comments

 

This keyword checks the specified checkbox on the given web page and waits for the given time.

In this example, this keyword clicks on the mapped checkbox object of the web application and waits for the given time. While using this keyword, you should ensure that you are using this keyword with a relevant keyword (like OpenBrowser) which can open your web application having checkbox to be checked.

Common Error conditions

Scenarios

Error Message

Debug Information

If ON/OFF value is not given in data input argument.

Browser: Mozilla Firefox

URL: Given

Object Input Argument: Mapped

Data Input Argument: No Value

Argument Data Missing (-13200)

Argument(s) : (Value) are blank.

If OR object is not mapped with the SelectCheckBox keyword.

Browser: Mozilla Firefox

URL: Given

Object Input Argument: No Object

Data Input Argument: ON

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

If browser name & URL of web application (or Both) are not given in input argument.

Browser:

URL:

Object Input Argument: Object Mapped

Data Input Argument: ON

Argument Data Missing (-13200)
Argument(s) : (Browser;URL) are blank.

SelectCheckBoxInTableCell

This keyword selects checkbox present in table cell. This keyword is mostly used in situations where you want to select checkbox present in table cell before performing any action on it. For example, you want to select check box in table cell.

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.
Value
Yes
This Keyword takes the text value which is selected in dropdown.

Note: Index Value must be start from ‘0’ onwards.

Output

True

If the keyword passes successfully

False

If the keyword fails

Example

C:Userspallavi.goelPictures19.png

SelectCheckBoxInTableCell

Object
<   Choose your object from OR   >

Common Error conditions

Scenarios

Error Message

Debug Information

If no object is selected

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

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.

If Object is Provided but Data input argument is not Provided
Argumemt(s) : (Row Index;Column Index;Object Index;Value) are blank.

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.

If Object is not Provided but Index Value is Provided
No Object of type input found in the Table Cell

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.

If Index data is wrong
No Object of type input found in the Table Cell

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.

SelectdropDownInTableCell

This Keyword Selects the Dropdown Value in Table Cell. This keyword is mostly used in situations where you want to select the dropdown value of desired cell in provided table before performing any action on it.

For example, you want to select dropdown value in table cell.

Input Arguments

Object Input Arguments

Required?

Description

Object

Yes

This Keyword takes one object in input argument. You need to select the table Object in which you want to select the drop down value.

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.
Select Value
Yes
This Keyword takes the text value which is selected in dropdown.

Output

True

If the keyword passes successfully

False

If the keyword fails

Example

C:Userspallavi.goelPictures14.png

In the example above, if you want to select the value in marital status, here is how you will use this keyword.

SelectDropDownInTableCell

Object
<   Choose your object from OR   >

Common Error conditions

Scenarios

Error Message

Debug Information

If no object is selected

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

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.

If Object is Provided but data input argument is not provided
Argumemt(s) : (Row Index;Column Index;Index;SelectValue) are blank.

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.

If Object is not Provided but Index Value is Provided
Data not provided for argument: ‘Object’. Expected StaticValue was empty.

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.

If Index data is wrong
No Object of input type  found in the Table Cell

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.

SelectDropDownItem

This keyword selects the specified value in the given dropdown object. It takes Dropdown object as Object Input Argument and Item name as data input argument that has to be selected from the dropdown object.

Input Arguments

Object Input Arguments

Required?

Description

Object

Yes

This keyword takes dropdown object as object input argument.

Data Input Arguments

Required?

Description

Item

Yes

This keyword takes name of the item that has to be selected from the drop down list.

Output

True

If the keyword passes successfully

False

If the keyword fails

Example

Image

Comments

 

This keyword selects the given value from the dropdown list.

In this example, this keyword selects the given item from the dropdown list. While using this keyword, you should ensure that you are using this keyword with a relevant keyword (like OpenBrowser) which can open your web application having dropdown list of items.

Common Error conditions

Scenarios

Error Message

Debug Information

When value to be selected from dropdown list is not given.

Browser: Mozilla Firefox

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

Object Input Argument: Object given

Data Input Argument: Item not given

 

Object Not Found (-11100)
Cannot locate element with text:

If Object in Object input argument and Item in Data input argument is not given

Browser: Mozilla Firefox

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

Object Input Argument: Object not given

Data Input Argument: Item not given

 

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

If browser name and URL of web application is not given.

Browser:

URL:

Object Input Argument: Object given

Data Input Argument: Item given

Argument Data Missing (-13200)

Insufficient Privileges (-14100)

Argument(s) : (URL) are blank

Either Browser was never Opened  or all WebDriver instances were closed

-plugin-unable-to-take-screenshot-

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

SelectDropDownItemAndWait

This keyword selects the specified item in dropdown and waits for specified time. It takes dropdown object as Object input argument and Item and time (sec) as data input argument.

Input Arguments

Object Input Arguments

Required?

Description

Object

Yes

This keyword takes object as object input argument.

Data Input Arguments

Required?

Description

Item

Yes

This keyword takes item name that has to be selected from the dropdown list

Timeout
Yes
Specify the time in seconds.

Output

True

If the keyword passes successfully

False

If the keyword fails

Example

Image

Comments

 

This keyword selects the given value from the dropdown list and wait for the given timeout.

In this example, this keyword selects the provided item name from the dropdown list and wait for the given timeout. While using this keyword, you should ensure that you are using this keyword with a relevant keyword (like OpenBrowser) which can open your web application having dropdown list of items.

Common Error conditions

Scenarios

Error Message

Debug Information

When value to be selected from dropdown list & timeout value is not given.

Browser: Mozilla Firefox

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

Object Input Argument: Object given

Data Input Argument: Item & Timeout value not given

 

Argument Data Missing (-13200)
Argument(s): (Timeout) are blank.

If Object in Object input argument and Item & Timeout value in Data input argument is not given

Browser: Mozilla Firefox

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

Object Input Argument: Object not given

Data Input Argument: Item & Timeout value not given

 

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

If browser name and URL of web application is not given.

Browser:

URL:

Object Input Argument: Object given

Data Input Argument: Item & Timeout value 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

Either Browser was never Opened  or all WebDriver instances were closed

-plugin-unable-to-take-screenshot-

SelectFrame

This keyword selects a Frame Object such that further calls are made inside the Frame Object. It takes a Frame object as data input argument.

For SelectFrame Keyword:

Input Arguments

Object Input Arguments

Required?

Description

Object

Yes

This Keyword takes one table 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 the keyword fails

Example

Image

Comments

 

This keyword  selects a Frame Object such that further calls are made inside the Frame Object.

In the above Screenshot, if you want to select the highlighted frame, you can do so by using SelectFrame keyword as follows:

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.

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: ‘Frame’. Expected Static Value was empty

SelectGroupRadioButton

This keyword selects specified radio button from a group of radio buttons placed in a container or a frame or a group. It takes radio button type object as object input argument and index as data input argument.

Input Arguments

Object Input Arguments

Required?

Description

Object

Yes

This keyword takes the container or frame or group object which contains various radio buttons.

Data Input Arguments

Required?

Description

Index

Yes

This keyword takes the index of the specified  Radio button which has to be selected

Output

True

If the keyword passes successfully

False

If the keyword fails

Example

URL

Comments

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

This keyword selects specified radio button from a group of radio buttons placed in a container or a frame or a group

When you want to select a radio button from the group of radio button. You need to provide the Group object which contains the radio buttons. You can use the keyword “SelectGroupRadioButton” as follows:

SelectGroupRadioButton

Object

< Choose the container Object From the OR  >

Index

0

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 blank 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 StaticValue was empty.

SelectMultipleDropDownItem

This keyword selects “more than 1” item from a multivalued dropdown object. This keyword is mostly used in situations when you need to select more than 1 item from a multivalued dropdown object.  It takes one Dropdown Object as Object Input Argument. It also takes ItemString as Data Input Argument.

Input Arguments

Object Input Arguments

Required?

Description

Object

Yes

This Keyword takes one object Input argument. You can choose the dropdown object from your Object Repository from which you want to Select several items.

Data Input Arguments

Required?

Description

ItemString

Yes

Specify the name of item which you want to select.

Note: You can provide more than one item by separating them from semicolon ’;’

Output

True

If the keyword passes successfully

False

If the keyword fails

Example

Image

Comments

 

This Keyword selects the specified Item String from the Dropdown Object.

Suppose you want to Select two items Volvo and Opel from this Multivalued dropdown, then after mapping this dropdown object with keyword “SelectMultipleDropDownItem”,and providing “Volvo;Opel” in ItemString, this keyword selects two values Volvo and Opel from dropdown.

SelectMultipleDropDownItem

Object

< Choose any DropDown Object from OR >

Item String

Volvo; Opel

Common Error conditions

Scenarios

Error Message

Debug Information

When no Object Input Argument 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 StaticValue was empty

If Items in ItemString is  separated by ‘space’

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.

Text is not present in dropdown

SelectMultipleDropDownItemAndWait

This keyword selects “more than 1” item from a multivalued dropdown object and waits for specified time.

It selects the specified value in multivalued Dropdown object. It takes a Multivalued Dropdown object as input parameter in Object input parameter and value to be selected in dropdown as input parameter in Data input parameter.

Input Arguments

Object Input Arguments

Required?

Description

Object

Yes

This Keyword takes one object Input argument. You can choose the dropdown object from your Object Repository from which you want to Select several items.

Data Input Arguments

Required?

Description

ItemString

Yes

Specify the name of item which you want to select.

Note: You can provide more than one item by separating them from semicolon ’;’

Timeout
Yes
Specify a static wait, by default it takes time unit seconds and it waits for that specified time

Output

True

If the keyword passes successfully

False

If the keyword fails

Example

Image

Comments

 

This Keyword selects multiple Items from the Dropdown and then waits for the specified time.

Suppose you want to Select two items Volvo and Opel from this Multivalued dropdown, then you will use the  keyword “SelectMultipleDropDownItemAndWait” as follows:

SelectMultipleDropDownItemAndWait

Object

< Choose any DropDown Object from OR >

Item String

Volvo; Opel

Timeout
10

This will select the specified Item String from the Dropdown and then wait for 10 seconds.

Common Error conditions

Scenarios

Error Message

Debug Information

When no Object Input Argument 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 StaticValue was empty

When in data input argument, “Timeout” time is not 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.

Argument(s): (Timeout) is/are blank.

SelectMultipleDropDownItemInTableCell

This keyword  selects multiple Items from MultiDropdown inside a table cell.It takes table type object as object input argument and row Index, column Index, index and  value as data input argument.

For SelectMultipleDropDownItemInTableCell  Keyword:

Input Arguments

Object Input Arguments

Required?

Description

Object

Yes

This Keyword takes one table object as  Object Input Argument. You can select a Table Object from the Object Repository whose dropdown values in a specified cell has to be selected.

Data Input Arguments

Required?

Description

Row

Index

Yes

Specify the row index of the table cell

Column

Index

Yes

Specify the column index of the table cell

Index

Yes
Specify the position of the object inside the Table cell. Index starts from ‘0’

Value

Yes
Select Values  from the dropdown in the table cell.

Output

True

If the keyword passes successfully

False

If the keyword fails

Example

Image

Comments

 

This keyword  selects multiple values from a multi dropdown  in  the specified table cell.

In the above Screenshot, if you want to select the value “Volvo;Saab; Opel;Audi”  in the  Table cell, you can do so by using SelectMultipleDropDownInTableCell keyword as follows:

SelectMultipleDropDownInTableCell

Row Index

0

Column Index

0

Object Index
0
Status
Volvo;Saab;Opel;Audi;

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

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

Actually Found <volvo;saab;opel;audi;> and Expected </volvo;saab;opel;audi;>
When Invalid Object Input Arguments are provided other than 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.

Specified Object is not Table.

SelectRadioButton

This keyword selects the specified Radio button. It takes a Radiobutton object as Object input argument and index as data input argument.

You need to provide index of radio button to be selected only if there are more than one radio buttons nearby the targeted radio button.

Input Arguments

Object Input Arguments

Required?

Description

Object

Yes

This keyword takes object as object input argument.

Data Input Arguments

Required?

Description

Numeric

Yes

Index is required as Data input argument only if there are more than radio buttons available on the web page nearby to the selected radio button.

Output

True

If the keyword passes successfully

False

If the keyword fails

Example

URL

Comments

 

This keyword selects the given radio button.

In this example, this keyword selects the given radio button. If there are more than one radio button then you have to provide the index of the selected radio button. While using this keyword, you should ensure that you are using this keyword with a relevant keyword (like OpenBrowser) which can open your web application having radio button(s).

Common Error conditions

Scenarios

Error Message

Debug Information

When object of radio button are not given.

Browser: Mozilla Firefox

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

Object Input Argument:

Data Input Argument: Index given

Object Not Found (-11100

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

If browser name and URL of web application is not given.

Browser:

URL:

Object Input Argument: Object given

Data Input Argument: Index given

Argument Data Missing (-13200)

Insufficient Privileges (-14100)

Argument(s) : (URL) are blank

Either Browser was never Opened  or all WebDriver instances were closed

-plugin-unable-to-take-screenshot-

SelectRadioButtonAndWait

This keyword selects the specified Radio button and wait for given time after selection. It takes Radiobutton object and time (sec) as input argument.

Input Arguments

Object Input Arguments

Required?

Description

Object

Yes

This keyword takes object as object input argument.

Data Input Arguments

Required?

Description

Timeout

Yes

This keyword takes timeout as Data input argument.

Output

True

If the keyword passes successfully

False

If the keyword fails

Example

URL

Comments

 

This keyword selects the given radio button and wait for the given timeout value.

In this example, this keyword selects the given radio button and wait for the given timeout value. While using this keyword, you should ensure that you are using this keyword with a relevant keyword (like OpenBrowser) which can open your web application having radiobuttons.

Common Error conditions

Scenarios

Error Message

Debug Information

When timeout value is not given.

Browser: Mozilla Firefox

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

Object Input Argument: Object Mapped

Data Input Argument: Timeout not given

Argument Data Missing (-13200)
Argument(s) : (Timeout) are blank

When object of radio button is not given.

Browser: Mozilla Firefox

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

Object Input Argument: Object not given

Data Input Argument: Index given

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

If browser name and URL of web application is not given.

Browser:

URL:

Object Input Argument: Object given

Data Input Argument: Index given

Argument Data Missing (-13200)

Insufficient Privileges (-14100)

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

-plugin-unable-to-take-screenshot-

Either Browser was never Opened  or all WebDriver instances were closed

Argument(s) : (Timeout) are blank

SelectRadioButtonInTableCell

This keyword selects radio button available inside any table cell. This keyword is mostly used in situations where you have to select radio button within your table cell.

For example, you want to select radio button available inside any table cell and perform action on it.

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 this link

Data Input Arguments

Required?

Description

Row Index

Yes
Specify the Row number of the cell in which link appears.
Note: Row Index start from zero .
Column Index
Yes

Specify the Column number of the cell in which link appears.

Note: Column Index start from zero .

Object Index
Yes

Index of object in table cell

Note: Indexing of object start from zero.

Output

True

If the keyword passes successfully

False

If the keyword fails

Example

In the example table above, if you want to select “shirt size” as “S” radio button in 2nd Row last column, here is how you will use this keyword “SelectRadioButtonInTableCell”.

SelectRadioButtonInTableCell

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

Common Error conditions

Scenarios

Error Message

Debug Information

If table object is not found

Object Not Found

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

If specified cell is not found
Argument Data Invalid
Given row not exist in table
If no object is found in the specified cell
Unsupported Operation
Given row does not exist in table cell

SelectRadioButtonOnIndexBasis

SelectWindow

SetFocus

SetFocusEditField

SetFocusOnDropDown

SetFocusOnWindow

SetFocusTextArea

SetPage

SwitchToDefaultContent

SyncBrowser

TypeKeysAndWait

TypeKeysInTextArea

TypeKeysOnEditBox

TypeOnObjectInTableCell

TypeSecureText

TypeTextAndEnterEditBox

TypeTextAndEnterTextArea

TypeTextAndWait

TypeTextInTableCell

TypeTextInTableCellByQuery

TypeTextInTextArea

TypeTextOnEditBox

Wait

WaitForEditBoxDisabled

WaitForEditBoxEnabled

WaitForImageLoad

WaitForLink

WaitForObjectDisable

WaitForObject

WaitForObjectEditable

WaitForObjectEnable

WaitForObjectProperty

WaitForObjectVisible

Web_clickByText

Web_clickByTextInSequence

Web_DeSelectCheckBoxByText

Web_GoBack

Web_SelectByText

Web_SelectCheckBoxByText

Web_SelectDropDownByText

Web_SelectListItem

Web_SelectRadioButtonByText

Web_TypeByText

Web_VerifyListItemExists

Web_SetFocusOnCurrentWindow

Article

No items found.