GetAttribute

GetAttribute command is used to get the value of different attributes (id, class etc.) and stores its value in a variable, which is exactly same as the name of element in this step.

Select GETATTR command from the action drop down, select desired Screen name, Element key and provide the attribute type (id, class etc.) in parameter section as shown below:

After completing this step, test step will look as below:

Now you can access the attribute using Element key name in which the attribute value has been stored using ${About us} as shown in the above snapshot.

Was this page helpful?