17.8 Salesforce Keywords

Action

SF_AccountsExists

This Keyword checks whether a specified account record exists or not in the Salesforce Application based on the Data Input Arguments provided.

Input Arguments

Object Input

Arguments

Required?

Description

Object

No

This keyword doesn’t take any object input argument.

Data Input Arguments

Required?

Description

Account Name

Yes

Provide the Account Name of the record whose Existence has to be verified.

Phone

Yes

Provide the Phone of the record whose Existence has to be verified.

BillingState/

Province

Yes

Provide the BillingState/Province of the record which has to be verified.

Identifier

Yes

Provide the column name by which the record can be verified.

Value

Yes

Provide the Value corresponding to the Identifier provided.

Note: You can provide maximum 2 Identifiers and corresponding value. This Keyword is implemented both in Lightning and Classic mode.

Output

True

If the account Exists If the keyword passes successfully

False

If the keyword fails

Example

 

 

For example, in the above screenshot, if you want to verify the Existence of the highlighted record then you can use the keyword “SF_Accounts Exists” as follows:

SF_AccountsExists

Account Name

Burlington Textiles Corp of America

Phone

(336)-222-7000

    BillingState/

Province

NC

Identifier

    ACCOUNT OWNER ALIAS

Value

sPand

Common Error conditions

Scenarios

Error Message

Debug Information

When Account Name Data Input arguments is 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) : (Account Name) is blank.

When the keyword is launched without using Open browser keyword.

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 SalesForce instances were closed

SF_ClickByText

This Keyword clicks on an object that exists on a page of the Sales Force Application based on the Data Input Arguments provided.

Input Arguments

Object Input

Arguments

Required?

Description

Object

No

This keyword doesn’t take any object input argument.

Data Input Arguments

Required?

Description

Text To

Search

Yes

Provide Text of the element to be clicked.

Partial
Text

No

Provide True if text to be searched is partial Text.

By Default,it is false.

Index

No

Specify the Index of the Text to be clicked.

Note : Index starts from 0

Output

True

If the keyword passes successfully

False

If the keyword fails

Note: This Keyword is implemented both in Lightning and Classic mode.

Example

For example, in the above screenshot, if you want to click on the highlighted textbox “LogIn” then you can use the keyword SF_ClickByText as follows:

SF_ClickByText

Text To Search

Log In

Partial Text
False
Index
0

Common Error conditions

Scenarios

Error Message

Debug Information

When Text To search Data Input arguments is 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) : (Text To Search)

is blank.

When the keyword is launched without using Open browser keyword.

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 SalesForce instances were closed

SF_ClickByTextInSequence

This Keyword clicks on the specified Text in a sequential manner that exists on a page of the Salesforce Application based on the Data Input Arguments provided.

Input Arguments

Object Input

Arguments

Required?

Description

Object

No

This keyword doesn’t take any object input argument.

Data Input Arguments

Required?

Description

TextTo

Search

Yes

In this Data Input Argument, specify the text on which you want to click.

(TextToSearch1,TextToSearch2,TextToSearch3, TextToSearch4, TextToSearch5)

Index

Yes

In this Data Input Argument specify “the Index number of the text”. If the text appears first time on the page then its index number is “ZERO (0)”

(Index1, Index2, Index3, Index, Index 5)

PartialText

Yes

In this Data Input Argument select True if you provided the Partial text in “TextToSearch” otherwise False. (By default, it is False)

(PartialText1, PartialText2, PartialText3, PartialText 4, PartialText 5)

Output

True

If the keyword passes successfully

False

If the keyword fails

Note: This Keyword is implemented both in Lightning and Classic mode.

Example

As shown in the above screenshot if we want to Click on Home Text, then after redirecting on this page if we want to click on text “Chatter”  then after reaching on this  page if we want to click on text “Campaigns” then if we want to click on text “Leads” then after reaching on this page if we want to click on text “Accounts” which is available on 5th page

We can use “SF_ClickByTextInSequence” keyword as follows:

SF_ClickByTextInSequence

Text To Search 1

Home

Index 1

 0    

Partial Text 1

False

Text To Search 2

Chatter

Index 2

0

Partial Text 2

False

Text To Search 3

Campaigns

Index 3

0

Partial Text 3

False

Text To Search 4

Leads

Index 4

0

Partial Text 4

False

Text To Search 5

Accounts

Index 5

0

Partial Text 5

False

Common Error conditions

Scenarios

Error Message

Debug Information

If TextToSearch Data Input Argument is 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

Text is not provided.

If TextToSearch1 is having partial text, Index1 is Blank and PartialText1 is false.

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.

No Object Found with Text

SF_ClickImageByTitle/Alt

This keyword clicks on specified image that exists on some page of the salesforce application on basis of image title or alt attribute given. It takes Title/Alt, Index, Partial Text as Data Input Arguments.

Input Arguments

Object Input Arguments

Required?

Description

Object

No

This keyword doesn’t take any object input argument.

Data Input Arguments

Required?

Description

Title/Alt

Yes

Specify the title or Alt Property of the image to be clicked.

Index

No

Specify the position of the image object.

Note: Index starts from 0

Partial

Text

     Yes

Provide True if text to search is partial Text

Output

True

If the keyword passes successfully

False

If the keyword fails

Note: This Keyword is implemented both in Lightning and Classic mode.

Example

 

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

SF_ClickImageByTitle/Alt

Title/Alt

salesforce  

Index

 

Partial Text

False

Common Error conditions

Scenarios

Error Message

Debug Information

When Invalid Data Input arguments are provided.

Argument Data Missing (-13200)

DESCRIPTION:

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

Argument(s) : (Title/Alt)

is blank.

When the keyword is launched without using Open browser keyword.

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 SalesForce instances were closed

SF_ClickInTableCellUsingObject

This Keyword clicks on a specified table cell that exists on some page of the Salesforce application using query based on the Data Input Arguments provided.

Input Arguments

Object Input

Arguments

Required?

Description

Object

Yes

This keyword takes a table object as Object Input Argument

Data Input Arguments

Required?

Description

Column Name

Yes

Provide the Column Name of the table whose cell has to be clicked.

Object

Index

Yes

Provide the Index of the Object inside the table cell.

Note : Object index starts from ‘0’.

Header

Yes

Provide the column name by which the record can be identified

Value

Yes

Provide the Value corresponding to the Identifier provided.

Note: You can provide maximum 5 Header and corresponding value.This Keyword is implemented both in Lightning and Classic mode.

Output

True

If the keyword passes successfully

False

If the keyword fails

Example

 

For example, in the above screenshot, if you want to click on the column name “ACCOUNT SITE” of the highlighted table row  then you can use the keyword “SF_ClickInTableCellUsingObject” as follows:

SF_ClickInTableCellUsingObject

Object 
< Choose a table Object from OR  >

Column Name

ACCOUNT SITE

Object Index

0

Header

 PHONE

Value

(336)222-7000

Common Error conditions

Scenarios

Error Message

Debug Information

When Column Name Data Input arguments is 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) : (Column Name) is blank.

When the keyword is launched without using Open browser keyword.

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 SalesForce instances were closed

SF_ClickInTableCellUsingText

This Keyword clicks on a specified table cell that exists on some page of the Salesforce application using text provided in the Data Input Arguments.

Input Arguments

Object Input

Arguments

Required?

Description

Object

No

This keyword does not take any Object Input Argument

Data Input Arguments

Required?

Description

      Table Name 
       Yes
Provide the Table Name whose cell has to be clicked.

Column Name

Yes

Provide the Column Name of the table whose cell has to be clicked.

Object

Index

Yes

Provide the Index of the Object inside the table cell.

Note : Object index starts from ‘0’.

Header

Yes

Provide the column name by which the record can be identified

Value

Yes

Provide the Value corresponding to the Identifier provided.

Note: You can provide maximum 5 Header and corresponding value. This Keyword is implemented both in Lightning and Classic mode.

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, in the above screenshot, if you want to click on the column name “ACCOUNT SITE” of the highlighted table row then you can use the keyword “SF_ClickInTableCellUsingText” as follows:

SF_ClickInTableCellUsingText

Table Name
ACCOUNTS

Column Name

ACCOUNT SITE

Object Index

0

Header

    PHONE

Value

(336)222-7000

Common Error conditions

Scenarios

Error Message

Debug Information

When Column Name Data Input arguments is 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) : (Column Name) is blank.

When the keyword is launched without using Open browser keyword.

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 SalesForce instances were closed

SF_ClickNewDashboard

This Keyword Clicks on new Dashboard in Dashboard section of the Salesforce Application. It does not take any Object or Data Input Arguments.

Input Arguments

Object Input Arguments

Required?

Description

Object

No

This keyword doesn’t take any object input argument.

Data Input Arguments

Required?

Description

Data

No

This keyword doesn’t take any data input argument.

Output

True

If the keyword passes successfully

False

If the keyword fails

Note: This Keyword is implemented only in Lightning mode.

Example

For example, in the above screenshot, the keyword SF_ClickNewDashboard will click on the highlighted “NewDashboard” tab and creates a new Dashboard for the Dashboard section of the Salesforce application.

Common Error conditions

Scenarios

Error Message

Debug Information

When the keyword is launched without using Open browser keyword.

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 SalesForce instances were closed

When user opens some application other than sales force.

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 on the given page.

SF_ClickNewEvent

This Keyword clicks on a new event of calendar section of the Salesforce Application. It does not take any Object or Data Input Arguments.

Input Arguments

Object Input Arguments

Required?

Description

Object

No

This keyword doesn’t take any object input argument.

Data Input Arguments

Required?

Description

Data

No

This keyword doesn’t take any data input argument.

Output

True

If the keyword passes successfully

False

If the keyword fails

Note: This Keyword is implemented only in Lightning mode.

Example

For example, in the above screenshot, the keyword SF_ClickNewEvent will click on the highlighted “NewEvent” tab and creates a new event for the calendar section of the Salesforce application.

Common Error conditions

Scenarios

Error Message

Debug Information

When the keyword is launched without using Open browser keyword.

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 SalesForce instances were closed

When user opens some application other than sales force.

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 on the given page.

SF_ContactExists

This Keyword checks whether a specified contact record exists or not in the Salesforce Application based on the Data Input Arguments provided.

Input Arguments

Object Input

Arguments

Required?

Description

Object

No

This keyword doesn’t take any object input argument.

Data Input Arguments

Required?

Description

Name

Yes

Provide the Name of the record whose Existence has to be verified.

Phone

Yes

Provide the Phone of the record whose Existence has to be verified.

Email

Yes

Provide the Email of the record which has to be verified.

Identifier

Yes

Provide the column name by which the record can be verified.

Value

Yes

Provide the Value corresponding to the Identifier provided.

Note: You can provide maximum 2 Identifiers and corresponding value.This Keyword is implemented both in Lightning and classic mode.

Output

True

If the Contact Exists If the keyword passes successfully

False

If the keyword fails

Example

 

For example, in the above screenshot, if you want to verify the Existence of the highlighted record then you can use the keyword “SF_ContactExists” as follows:

SF_ContactExists

Name

Rose Gonzalez

Phone

(512)757-5000

    Email

rose@edge.com

Identifier

    ACCOUNT NAME

Value

Crestech

Common Error conditions

Scenarios

Error Message

Debug Information

When Name Data Input arguments is 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) : (Name) is blank.

When the keyword is launched without using Open browser keyword.

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 SalesForce instances were closed

SF_DeselectCheckBoxByText

This Keyword deselects the specified checkbox that exists on a page of the Salesforce Application based on the Data Input Arguments provided.

Input Arguments

SF_GlobalSearch

SF_EditAccountsInTable

SF_EditContactsInTable

SF_EditLeadsInTable

SF_EditOpportunitiesInTable

SF_GetTextFromTableCellUsingObject

SF_GetTextFromTableCellUsingText

SF_GoToAccounts

SF_GoToCalendar

SF_GoToChatter

SF_GoToContacts

SF_GoToDashboards

SF_GoToFiles

SF_GoToForecasts

SF_GoToGroups

SF_GoToHome

SF_GoToLeads

SF_GoToNotes

SF_GoToOpportunities

SF_GoToProducts

SF_GoToQuotes

SF_GoToReports

SF_GoToTab

SF_GoToTasks

SF_GroupExists

SF_LaunchApp

SF_Logout

SF_LeadsExists

SF_OpportunitiesExists

SF_MouseHoverOnText

SF_RefreshSection

SF_QuotesExists

SF_SelectCalendarView

SF_SetSalesforceEnvironment

SF_SelectEditView

SF_SetDate

SF_SetTime

SF_SelectCheckBoxByText

SF_SelectDisplayAs

SF_SelectDropdownByText

SF_SelectListViewControl

SF_SelectNew

SF_SelectRadioButtonByText

SF_SwitchToSalesforceLightning

SF_SwitchToSalesforceClassic

SF_TypeByText

SF_TypeTextInTableCellUsingObject

SF_TypeTextInTableCellUsingText

SF_VerifyWidgets

SF_SearchAndSelect

SF_LaunchAppAndSelectItem

Article

No items found.