it'll work without the wild card characters (.*) as well. A little less to
type :).
On Friday, February 8, 2013 6:36:16 AM UTC-5, Alex Shtayer wrote:
>
>
> If I understand your question correctly, so both of my examples are given
> for string case (not for numbers or something) as all DOM values that we
> get are strings by default
>
> or did you mean how you can use variable instead exact number?
> you can try something like:
> browser.link(:id, /.*#{num1}.*/)
> such statement should pass variable value directly to your expression
>
>
--
--
Before posting, please read http://watir.com/support. In short: search before
you ask, be nice.
[email protected]
http://groups.google.com/group/watir-general
[email protected]
---
You received this message because you are subscribed to the Google Groups
"Watir General" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.