just_add_watir | Advanced recipes for Watir
17Jul/08Off

Q. How do I get text from a browser?

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)
Tagged as: , Comments Off
Comments (0) Trackbacks (0)

Sorry, the comment form is closed at this time.

Trackbacks are disabled.