After executing the command in Selenium IDE, I successfully extracted the sentence, "Your booking ID is 1234", and saved it in a variable named myText.
<table>
<tr>
<th>Command</th>
<th>Target</th>
<th>Value</th>
</tr>
<tr>
<td>store text</td>
<td>xpath=//div[@id='booking']/div/div[3]</td>
<td>myText</td>
</tr>
</table>
Is there a way to extract only the number from the sentence and store it in a separate variable for future use? Should I utilize JavaScript or modify the xpath?
Note: The number is subject to change.
Thank you!