Want to store H1 Description in a keyword

You need to use storeText and reference the variable with ${Recent_Sample}

For example:

Command | Target | Value
open | http://forum.katalon.com/t/want-to-store-h1-description-in-a-keyword/18974
storeText | xpath=(.//*[normalize-space(text()) and normalize-space(.)='Free Download'])[1]/following::a[8] | Recent_Sample
echo | ${Recent_Sample}

The echo command will display the value in the log tab.

1 Like