The sample application displays a unique email address on the Get Instant Auto Quote page page. The text on this page containing the email address is the property value of a control on the page.
In this lesson, you will store this text to the local variable strEmailAddress created in the previous exercise.
When the step is selected, the captured screen for the Get Instant Auto Quote page page displays in the Screen Preview.
This step will be used to store the email address text from the Get Instant Auto Quote page to the local variable by editing the step properties. You will edit the step properties to specify the control to be used, the property of the control, and the variable to store the property value. The variable is strEmailAddress, which you created in the previous exercise.
Silk Test Workbench updates the Locator information in the Properties pane with the following value: webBrowser.browserWindow.autoquoteEMail.
Now that you have successfully identified the control, the property of the control containing the desired value, and the variable in which to store the property value, the step text should read as follows: Put the 'Text' property of the control into variable 'strEmailAddress'The Local variable name value in both the Properties pane and the step text changes to strEmailAddress.
To confirm that the test captures the property value and stores it properly, play back the test and review the result.