yes, that's right. just used to that style :)
--
--
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 mes
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 value
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}.*
Thanks for this Alex, how would I format that if the number was stored as a
string? e.g. if num1 = '1234' how would I use num1 instead of 1234?
On Friday, 8 February 2013 10:45:37 UTC, Alex Shtayer wrote:
>
>
> using regular expressions
> e.g.
> browser.link(:id, /.*1234.*/)
>
> or xpaths
> brows
using regular expressions
e.g.
browser.link(:id, /.*1234.*/)
or xpaths
browser.link(:xpath, "//a[contains(@id,'1234')]"))
--
--
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-