[wtr-general] Re: Issue trying to click on a span element using safariwatir

2009-11-24 Thread ravi pulipaka
generally i feel span doesnot support text refer to supported methods by element in watir wiki but confirm with others anyways try this browser.span(:text, /.*butterfly/).click ravi On Thu, Nov 19, 2009 at 2:57 PM, Tiffany Fodor tcfo...@comcast.net wrote: Hi! Since you're already using a

[wtr-general] Re: Issue trying to click on a span element using safariwatir

2009-11-19 Thread John Kolokotronis
The dot character in a regex (.) is a wildcard so you need to escape it. Try this: browser.span(:text, /butterfly\.m4v/).click Regards, John On Nov 18, 3:35 pm, QAguy qablogm...@gmail.com wrote: I cannot add an id as I don't have control over code decisions unfortunately. So I am forced to

[wtr-general] Re: Issue trying to click on a span element using safariwatir

2009-11-19 Thread Ethan
That will probably not fix it as the regex dot will match the literal dot, so it should still work as-is. On Thu, Nov 19, 2009 at 03:52, John Kolokotronis johnj...@gmail.com wrote: The dot character in a regex (.) is a wildcard so you need to escape it. Try this: browser.span(:text,

[wtr-general] Re: Issue trying to click on a span element using safariwatir

2009-11-19 Thread QAguy
Unfortunately that didn't work either. I did this: browser.span(:text, /butterfly\.m4v/).click and got this: Unable to locate Span element with text of (?-mix:butterfly\.m4v) I'm not sure what the ?-mix: part of that is. Anything else you can recommend? QAguy On Nov 19, 3:52 am, John

[wtr-general] Re: Issue trying to click on a span element using safariwatir

2009-11-19 Thread Tiffany Fodor
Hi! Since you're already using a regex, could you do this: browser.span(:text, /butterfly/).click or do you have multiple spans with 'butterfly' in the text? If so, could you specify the one you want using it's index? browser.span(:text = /butterfly/, :index = 3).click Also, it might help

[wtr-general] Re: Issue trying to click on a span element using safariwatir

2009-11-18 Thread QAguy
I cannot add an id as I don't have control over code decisions unfortunately. So I am forced to work with what I have. I also tried this: browser.span(:text, /butterfly.m4v/).click which gives me this: Unable to locate Span element with text of (?-mix:butterfly.m4v) and this:

[wtr-general] Re: Issue trying to click on a span element using safariwatir

2009-11-17 Thread Adam Esterline
Hmm... I am not sure why it cannot find the span. Does it seem to only be a problem when finding by text?Can you add an id to that span?Does it work when searching for it by id? Looking for a little more information. AE On Tue, Nov 17, 2009 at 3:57 PM, QAguy qablogm...@gmail.com