Currently, I am exploring ways to utilize the selenium IDE in order to retrieve, save, and apply the ID of a specific record.
The HTML code in question is as follows:
<span class='small'><a href="/users/change_district/31">(Select)</a></span>
My objective is to extract the 31
section from the snippet above and assign it to a variable named myVar.
According to the guidance provided for selenium usage, the recommended approach involves incorporating JavaScript. Thus, the suggested step is to employ the following script:
store | javascript{...} | myVar
The key query that arises is: What should be included within the {...}
segment of the JavaScript code?