17.1 Generic Keywords – Action

AcceptPopup

This keyword accepts the current popup. It doesn’t take any object/data input argument.

Input Arguments

Output

Example

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

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

Output

Example

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

CaptureObjectSnapshot

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

Common Error conditions

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

Output

Example

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

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

Output

Example

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

Common Error conditions

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

Output

Example

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

Output

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

Common Error conditions

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

Output

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

Common Error conditions

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

Output

Example

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

Common Error conditions

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

Output

Example

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

Common Error conditions

CloseAllBrowsers

This keyword closes all the open browser sessions started by OpKey. It does not take any input argument.

Input Arguments

Output

Example

Common Error conditions

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

Output

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

Common Error conditions

CloseSelectedWindow

This keyword closes the selected window. It takes title name of the window to be closed as data input argument.

Input Arguments

Output

Example

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

CloseSelectedWindow

Common Error conditions

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

Output

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

Output

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

Common Error conditions

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

Output

Example

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

Common Error conditions

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

Output

Example

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

Common Error conditions

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

Output

Example

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

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

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

Output

Example

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

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

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

Output

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

Common Error conditions

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

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

Output

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

Common Error conditions

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

Output

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

DoubleClick

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

Input Arguments

Output

Example

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

Common Error conditions

DoubleClickAndWait

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

Input Arguments

Output

Example

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

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

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

Output

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

Common Error conditions

DoubleClickButton

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

Input Arguments

Output

Example

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

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

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

Output

Example

ClickImage.jpg

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

DoubleClickImage

Common Error conditions

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

Output

Example

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

Common Error conditions

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

Output

Example

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

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

Here is how you will get the output:

2.png

Common Error conditions

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

Output

Example

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

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

Here is how you will get the output:

2.png

Common Error conditions

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

Output

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

FocusButton

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

Input Arguments

Output

Example

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

FocusCheckBox

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

Input Arguments

Output

Example

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

FocusRadioButton

This keyword sets focus to the specified Radio button. This keyword takes Radiobutton object as input argument.

Input Arguments

Output

Example

Common Error conditions

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

Output

Example

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  

Common Error conditions

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

Output

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

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

Output

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

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

Output

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

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

Output

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

Common Error conditions

KeyLeft

This keyword presses left Arrow Key of keyboard. This keyword does not take any input argument.

Input Arguments

Output

Example

Common Error conditions

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

Output

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

KeyRight

This keyword presses Right Arrow Key of keyboard. This keyword does not take any input argument.

Input Arguments

Output

Example

Common Error conditions

MaximizeBrowser

This keyword maximizes the current browser. This keyword does not take any input argument.

Input Arguments

Output

Example

Common Error conditions

MouseHover

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

Input Arguments

Output

Example

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

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

Output

Example

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

Common Error conditions

OpenBrowser

This keyword opens the website of given URL on specified browser. This keyword takes Browser name & URL as data input argument.

Input Arguments

Output

Example

Common Error conditions

PressTAB

This keyword presses TAB key. This keyword does not take any input argument.

Input Arguments

Output

Example

Common Error conditions

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

Output

Example

Common Error conditions

RefreshBrowser

This keyword refreshes the current browser session. This keyword does not take any input argument.

Input Arguments

Output

Example

Common Error conditions

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

Output

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

Note:

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

Common Error conditions

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

Output

Example

We can use  the Return Concatenated keyword as follows:

ReturnConcatenated

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

Output

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

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

Output

Example

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

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

Output

Example

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

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

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

Output

Example

C:Userspallavi.goelPictures19.png

SelectCheckBoxInTableCell

Common Error conditions

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

Output

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

Common Error conditions

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

Output

Example

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

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

Output

Example

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

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

Output

Example

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

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

Output

Example

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

Common Error conditions

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

Output

Example

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

Common Error conditions

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

Output

Example

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

SelectMultipleDropDownItemAndWait

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

Common Error conditions

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

Output

Example

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

Common Error conditions

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

Output

Example

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

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

Output

Example

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

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

Output

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

Common Error conditions

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

Contact us