A. Use a regex match on the .text method …
Example html:
<p> The Employee Code assigned is 10000671 </p>
Example watir:
puts /(1\d+)/.match(@b.text)
A. Use a regex match on the .text method …
Example html:
<p> The Employee Code assigned is 10000671 </p>
Example watir:
puts /(1\d+)/.match(@b.text)