Steer lookups in Salesforce Lightning Experience

Lookups allow you to search for and select items in Salesforce Lightning Experience.

XScan identifies lookups as TextBoxes. You can steer them as described in the chapter "TextBox".

Lookup in Salesforce Lightning Experience

Search for items in lookups

To search for items in lookups, add the value of the item you're searching for in the lookup to your TestCase.

In this example, you perform the following actions:

  1. You search for and select Account 3.

  2. You verify whether Account 3 is selected.

Lookup in a TestCase

In case you want to perform a scenario where the search item doesn't exist, the search item is incomplete, or you want to skip the time it takes for searching for a non-existing item in the lookup, use the Input(Value) syntax in your TestCase.

Lookup in a TestCase with the Input(Value) syntax

Delete content of a lookup

To delete the content of a lookup, you have the following options:

  • To delete the content of a lookup that is present in the recent search entries, scan the undo button and steer it.

  • To delete the content of a lookup that isn't present in the recent search entries, change the input to an empty string in Tosca Commander.