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. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com --- 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 watir-general+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.