[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: Delete cookies in Firewatir

2009-11-19 Thread aidy lewis
Angrez et al It is unlikely that we would want to get all cookies, but get cookies for a particular uri. browser.get_cookies('www.google.com') How about remove_cookies(:domain = 'domain') remove_cookies(:all) add_cookie is good. Aidy 2009/11/19 Angrez Singh ang...@gmail.com: Bret proposed

[wtr-general] Re: Delete cookies in Firewatir

2009-11-19 Thread aidy lewis
How about this browser.get_cookies(:domain = 'domain') browser.get_cookies(:all) browser.remove_cookies(:domain = 'domain') remove_cookies(:all) ? Aidy 2009/11/19 aidy lewis aidy.le...@googlemail.com: Angrez et al It is unlikely that we would want to get all cookies, but get cookies for

[wtr-general] Re: happy belated birthday watir.

2009-11-19 Thread jnxgn
Happy Birthday! On Nov 19, 2:53 am, Paul Rogers paul.rog...@shaw.ca wrote: If Im correct, watirs first public appearance was 5 years ago ( plus a few days as I forgot to send the email). Bret was teaching a class on test automation at StarWest, and I helped out. This was the first

[wtr-general] Re: happy belated birthday watir.

2009-11-19 Thread Raveendran P
Hi Team, Watir Rocks... Congrats team. Water is must for real world. Watir is must automation world! Regards, P.Raveendran http://raveendran.wordpress.com On Thu, Nov 19, 2009 at 5:31 PM, jnxgn s...@jnxgn.cn wrote: Happy Birthday! On Nov 19, 2:53 am, Paul Rogers paul.rog...@shaw.ca

[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: Delete cookies in Firewatir

2009-11-19 Thread b...@pettichord.com
I suggest that this conversation move to the watir-development list. We need need to ensure that Jari and the developers for other Watir implementations are in the loop, and I'm not sure that they watch everything here. Bret On Nov 19, 6:11 am, Tony ynot...@gmail.com wrote: Hi Aidy, Could

[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: No return in irb from click method

2009-11-19 Thread Tiffany Fodor
Hi Steve! I've noticed that when I copy multiple lines of code into irb, all but the last are processed and then I have to hit enter to process the last line of code. Have you verified that you can issue just the click for 'DDD' on it's own in irb? Is it possible that some javascript has been

[wtr-general] Re: No return in irb from click method

2009-11-19 Thread Steve Hamlett
Thanks for the ideas, Tiffany. Actually, I just tried going back to IE6 and that strategy worked. A set of 9 scripts ran cleanly. I see that I'm three releases behind on watir. I may need to upgrade to 1.6.5 and see how that works with IE7 and/or IE8. On Nov 19, 11:43 am, Tiffany Fodor

[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] Watir Examples...Need Help

2009-11-19 Thread tester86
I been through all the main websites with regards to watir commands, but I need some documention or something to verify data on a web page and return that value, do I have to include rspec.is there any good guides to watir apart from the 5 min quick example.

[wtr-general] Re: Watir Examples...Need Help

2009-11-19 Thread Tiffany Fodor
Hi! I think you need to decide what type of framework you want and that will dictate how you perform validations. From some of your previous posts, it looks like you've started with Cucumber. Are you sticking with Cucumber, or looking for a different framework? You can find examples of

[wtr-general] Hi, I have the following on my page... 80 68 7E.01.73.6D.40.50.CE.D5 Recorded: 10/29/09 Delete 8067 7E.01.73.6D.40.4F.CE.CE Recorded: 10/29/0 9 Delete 8065 7E.01.73.6D.

2009-11-19 Thread xguarder
Hi, I have the following on my page... 80687E.01.73.6D.40.50.CE.D5 Recorded: 10/29/09 Delete 80677E.01.73.6D.40.4F.CE.CE Recorded: 10/29/09 Delete 80657E.01.73.6D.40.4E.CE.C7 Recorded: 10/29/09 Delete All the Delete's

[wtr-general] Re: Hi, I have the following on my page... 8068 7E.01.73.6D.40.50.CE.D5 Recorded: 10/29/09 Delete 8067 7E.01.73.6D.40.4F.CE.CE Recorded: 10/29/09 Delete 8065 7E.01.73.6D.40.

2009-11-19 Thread Tiffany Fodor
Hi! If the text below is contained in a table, you can do this: my_table = browser.table(:id, 'table_id') my_table.rows.each do |row| if row.text.include?('7E.01.73.6D.40.50.CE.D5') On Nov 19, 2:53 pm, xguarder shams...@gmail.com wrote: Hi, I have the following on my page... 8068    

[wtr-general] Re: Hi, I have the following on my page... 8068 7E.01.73.6D.40.50.CE.D5 Recorded: 10/29/09 Delete 8067 7E.01.73.6D.40.4F.CE.CE Recorded: 10/29/09 Delete 8065 7E.01.73.6D.40.

2009-11-19 Thread Tiffany Fodor
Oops - sorry about that! I forgot that tab takes you out of the text edit box. Here's the code I was trying to give you: If the text below is contained in a table, you can do this: my_table = browser.table(:id, 'table_id') my_table.rows.each do |row| if

[wtr-general] Re: Hi, I have the following on my page... 8068 7E.01.73.6D.40.50.CE.D5 Recorded: 10/29/09 Delete 8067 7E.01.73.6D.40.4F.CE.CE Recorded: 10/29/09 Delete 8065 7E.01.73.6D.40.4E.CE.C7 Re

2009-11-19 Thread Ethan
you don't really need to loop there, you should just be able to do my_table.row(:text, /7E\.01\.73\.6D\.40\.50\.CE\.D5/).link(:text, 'Delete').click On Thu, Nov 19, 2009 at 17:12, Tiffany Fodor tcfo...@comcast.net wrote: Oops - sorry about that! I forgot that tab takes you out of the text

[wtr-general] WatirRecorder

2009-11-19 Thread tester86
Can someone give me the link to where I can download the watirRecorder+ +...as on the homepage it is not there. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email

[wtr-general] Re: happy belated birthday watir.

2009-11-19 Thread Zhimin
Happy Birthday Watir! Thanks the team and contributors for bringing us the joy of testing! Regards, Zhimin Zhan http://itest2.com - Watir IDE --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To

[wtr-general] Re: Hi, I have the following on my page... 8068 7E.01.73.6D.40.50.CE.D5 Recorded: 10/29/09 Delete 8067 7E.01.73.6D.40.4F.CE.CE Recorded: 10/29/09 Delete 8065 7E.01.73.6D.40.4E.CE.C7 Re

2009-11-19 Thread xguarder
Thanks so much to the above 2. Looks like that is working for me now! Simpler than I thought too. On Nov 19, 5:22 pm, Ethan notet...@gmail.com wrote: you don't really need to loop there, you should just be able to do my_table.row(:text, /7E\.01\.73\.6D\.40\.50\.CE\.D5/).link(:text,

[wtr-general] Re: WatirRecorder

2009-11-19 Thread Tiffany Fodor
Haven't you asked about this before? This group doesn't support WatirRecorder. I'm not sure why it's not available to download on OpenQA, but if you really need it, I'd suggest asking the folks on the Watir Recorder community board: http://clearspace.openqa.org/community/watir_recorder

[wtr-general] Re: WatirRecorder

2009-11-19 Thread George
Not to hijack the thread, but why use WatirRecorder? Isn't it just as easy to write the code? On Nov 19, 3:05 pm, Tiffany Fodor tcfo...@comcast.net wrote: Haven't you asked about this before? This group doesn't support WatirRecorder.  I'm not sure why it's not available to download on

[wtr-general] Re: WatirRecorder

2009-11-19 Thread Tiffany Fodor
Hi George! I agree with you and I wouldn't advocate using a recording tool. IMO, record-and-play doesn't really buy you much in time savings, and creates more fragile tests. I think some people are used to the 'out of the box' test automation tools that include a recorder. -Tiffany On Nov