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

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

Output

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

Common Error conditions

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

Output

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

Common Error conditions

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

Output

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

Common Error conditions

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

Output

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

Common Error conditions

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

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

Output

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

Common Error conditions

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

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_ClickInTableCellUsingText” as follows:

SF_ClickInTableCellUsingText

Common Error conditions

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

Output

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

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

Output

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

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

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

Output

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

Common Error conditions

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

Contact us