With keyword validations, your script can verify that the page is loading correctly or if it has changed, intentionally or unintentionally. DéjàClick will automatically detect keywords for you with the Add Keyword Validation feature.
To open the Add Keyword Validation dialog during the recording, do the following:
While staying on the recorded page, click Add Validations.
In the drop-down menu, select Add keyword validation.
After that, the Add Keyword Validation dialog appears. You can use it to configure your validation and specify its parameters.
There are two available views for the Add Keyword Validation dialog – Basic and Advanced. To switch between them, use the Display level drop-down list.
|Basic View||Advanced View|
When you use keyword validations during your script, the validation will use default properties from configuration. You can change these while creating the validation in the Add Keyword Validation dialog, or adjust your script after recording it and saving it.
In the Add Keyword Dialog, you have the following options:
Keyword edit box: Specify the value to look for here.
Use script variable – Select to define a keyword as an existing or new script variable.
Match options allow you to define what exactly DéjàClick should look for while performing the replay.
Action options allow you to specify an action to perform when the keyword match is found or not.
Search options allow you to specify documents which DéjàClick can use for validation.
For example, you visit Google to search for Van Gogh’s Starry Night, while want to make sure you see the following text: Starry Night by Vincent van Gogh - Van Gogh Gallery.
Start Chrome and DéjàClick.
Navigate to https://google.com and type Starry Night in the search field.
Click Add Validations > Add Keyword Validation
Click the following text: Starry Night by Vincent van Gogh - Van Gogh Gallery. The keyword validation automatically copies your selection into the validation dialog.
Click Stop Record/Playblack. DéjàClick completes your recording. Your keyword validation will appear attached to the step to the step in your script.
After completing your script, you can replay it to make sure you have the results you want. Click Begin Replay icon and watch the replay of your script. To save your script to your desktop, click Save.
If a keyword is not found when replaying the script, DéjàClick will display an alert. Open the Additional Information drop-down panel to see the details.
The results for the script will record the details, so you know exactly what occurred: