Re: [wtr-general] problem with radio button after upgrade
Thanks everyone for the links, it's a big help. As usual, I had to switch off to other work, trying to get a big block of time to get back to getting our many scripts to work in the new Watir/Webdriver. One of my coworkers who is new to Watir is helping. The doc will be a big help to us. -- Lisa On Fri, Jan 27, 2012 at 3:44 AM, Jari Bakken jari.bak...@gmail.com wrote: The watir-webdriver docs can certainly be improved (especially when it comes to examples), but the standard API docs (for any ruby gem actually) can be found on rubydoc.info, as Zeljko mentions: http://rubydoc.info/github/watir/watir-webdriver/frames As for the attribute methods on the element object, those are largely created through metaprogramming and thus not picked up by the default docs generator. To generate the *full* set of docs, you can run `rake yard` in a source checkout (we could perhaps host these ourselves somewhere?). Jari On Fri, Jan 27, 2012 at 12:09 AM, Lisa Crispin lisa.cris...@gmail.comwrote: The good news is, the syntax you gave me does work. Thank you! Then I realized this page I found that looks like such nice doc is for the old Watir. Does that not exist for Watir 2? This is *really* what I need. Something that shows all the possibilities (eg., can use name, id, value or whatever), and lots of examples. thanks Lisa On Thu, Jan 26, 2012 at 4:03 PM, Lisa Crispin lisa.cris...@gmail.comwrote: OK, and now I see in your email the link to this http://watir.com/support. So I just went there and did a search 'watir radio', and finally found this page, which is what I was looking for: http://wtr.rubyforge.org/rdoc/1.6.5/classes/Watir/Container.html Thank you! -- Lisa On Thu, Jan 26, 2012 at 3:13 PM, Željko Filipin zeljko.fili...@gmail.com wrote: On Thu, Jan 26, 2012 at 4:08 PM, Lisa Crispin lisa.cris...@gmail.com wrote: ie.radio(:name, 'rst', '65546').set The new api is: ie.radio(:name = rst, :value = 65546).set Željko -- 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 -- Lisa Crispin Co-author with Janet Gregory, _Agile Testing: A Practical Guide for Testers and Agile Teams_ (Addison-Wesley 2009) Contributor to _Beautiful Testing_ (O'Reilly 2009) http://lisacrispin.com @lisacrispin on Twitter http://entaggle.com/lisacrispin -- Lisa Crispin Co-author with Janet Gregory, _Agile Testing: A Practical Guide for Testers and Agile Teams_ (Addison-Wesley 2009) Contributor to _Beautiful Testing_ (O'Reilly 2009) http://lisacrispin.com @lisacrispin on Twitter http://entaggle.com/lisacrispin -- 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 -- 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 -- Lisa Crispin Co-author with Janet Gregory, _Agile Testing: A Practical Guide for Testers and Agile Teams_ (Addison-Wesley 2009) Contributor to _Beautiful Testing_ (O'Reilly 2009) http://lisacrispin.com @lisacrispin on Twitter http://entaggle.com/lisacrispin -- 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
[wtr-general] problem with radio button after upgrade
I'm trying to get all our zillions of Ruby/Watir/Test::Unit scripts working in the latest Watir version. Right away I ran into this problem. We have an old legacy page that has several radio buttons with the same name. So I can only select them by value. Here's the html: input type=radio onclick=javascript: location.href = 'userLogin.jsp?selectType=65546'; checked= value=65546 style=vertical-align: middle; name=rst Here is the Watir code (do you call this code?) that has worked for 8 years: ie.radio(:name, 'rst', '65546').set When I run the script, I get this error: ArgumentError: wrong number of arguments (3 for 2) (eval):1:in `radio' I've Googled the documentation and it looks to me like what we have should still work. However, I cannot find a specific example to use both name and value. Still, the documentation indicates that the value is supported. I have two questions: 1. Why am I getting this error? 2. Is there ONE definitive place where Watir commands (or whatever you call them) are documented? 3. Is there a side-by-side comparison of the old Watir and the new Watir? I saw some links that were pointing to github, but when I clicked them I got 404. If it's going to be too hard to upgrade, I can just stay on the old version forever, but I would really like to use webdriver. We are now using webdriver with Selenium and Geb, but I'd like to use it with Watir as well. Thanks, Lisa -- Lisa Crispin Co-author with Janet Gregory, _Agile Testing: A Practical Guide for Testers and Agile Teams_ (Addison-Wesley 2009) Contributor to _Beautiful Testing_ (O'Reilly 2009) http://lisacrispin.com @lisacrispin on Twitter http://entaggle.com/lisacrispin -- 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
Re: [wtr-general] problem with radio button after upgrade
On Thu, Jan 26, 2012 at 4:08 PM, Lisa Crispin lisa.cris...@gmail.com wrote: 1. Why am I getting this error? The api changed a bit. 2. Is there ONE definitive place where Watir commands (or whatever you call them) are documented? http://rubydoc.info/gems/watir/frames http://rubydoc.info/gems/watir-webdriver/frames 3. Is there a side-by-side comparison of the old Watir and the new Watir? I saw some links that were pointing to github, but when I clicked them I got 404. Here is the new link, but I am not sure how up to date the page is: https://github.com/watir/watir-webdriver/wiki/Comparison-with-Watir-1.X Željko -- 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
Re: [wtr-general] problem with radio button after upgrade
On Thu, Jan 26, 2012 at 4:08 PM, Lisa Crispin lisa.cris...@gmail.com wrote: ie.radio(:name, 'rst', '65546').set The new api is: ie.radio(:name = rst, :value = 65546).set Željko -- 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
Re: [wtr-general] problem with radio button after upgrade
OK, and now I see in your email the link to this http://watir.com/support. So I just went there and did a search 'watir radio', and finally found this page, which is what I was looking for: http://wtr.rubyforge.org/rdoc/1.6.5/classes/Watir/Container.html Thank you! -- Lisa On Thu, Jan 26, 2012 at 3:13 PM, Željko Filipin zeljko.fili...@gmail.comwrote: On Thu, Jan 26, 2012 at 4:08 PM, Lisa Crispin lisa.cris...@gmail.com wrote: ie.radio(:name, 'rst', '65546').set The new api is: ie.radio(:name = rst, :value = 65546).set Željko -- 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 -- Lisa Crispin Co-author with Janet Gregory, _Agile Testing: A Practical Guide for Testers and Agile Teams_ (Addison-Wesley 2009) Contributor to _Beautiful Testing_ (O'Reilly 2009) http://lisacrispin.com @lisacrispin on Twitter http://entaggle.com/lisacrispin -- 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
Re: [wtr-general] problem with radio button after upgrade
The good news is, the syntax you gave me does work. Thank you! Then I realized this page I found that looks like such nice doc is for the old Watir. Does that not exist for Watir 2? This is *really* what I need. Something that shows all the possibilities (eg., can use name, id, value or whatever), and lots of examples. thanks Lisa On Thu, Jan 26, 2012 at 4:03 PM, Lisa Crispin lisa.cris...@gmail.comwrote: OK, and now I see in your email the link to this http://watir.com/support. So I just went there and did a search 'watir radio', and finally found this page, which is what I was looking for: http://wtr.rubyforge.org/rdoc/1.6.5/classes/Watir/Container.html Thank you! -- Lisa On Thu, Jan 26, 2012 at 3:13 PM, Željko Filipin zeljko.fili...@gmail.comwrote: On Thu, Jan 26, 2012 at 4:08 PM, Lisa Crispin lisa.cris...@gmail.com wrote: ie.radio(:name, 'rst', '65546').set The new api is: ie.radio(:name = rst, :value = 65546).set Željko -- 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 -- Lisa Crispin Co-author with Janet Gregory, _Agile Testing: A Practical Guide for Testers and Agile Teams_ (Addison-Wesley 2009) Contributor to _Beautiful Testing_ (O'Reilly 2009) http://lisacrispin.com @lisacrispin on Twitter http://entaggle.com/lisacrispin -- Lisa Crispin Co-author with Janet Gregory, _Agile Testing: A Practical Guide for Testers and Agile Teams_ (Addison-Wesley 2009) Contributor to _Beautiful Testing_ (O'Reilly 2009) http://lisacrispin.com @lisacrispin on Twitter http://entaggle.com/lisacrispin -- 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
Re: [wtr-general] problem with radio button after upgrade
On Thu, Jan 26, 2012 at 5:09 PM, Lisa Crispin lisa.cris...@gmail.com wrote: Then I realized this page I found that looks like such nice doc is for the old Watir. Does that not exist for Watir 2? This is *really* what I need. Did you see this? http://rubydoc.info/gems/watir/frames http://rubydoc.info/gems/watir-webdriver/frames Something that shows all the possibilities (eg., can use name, id, value or whatever), and lots of examples. I started writing something like that in the book: https://github.com/zeljkofilipin/watirbook/blob/master/elements/link.md Željko -- 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
Re: [wtr-general] problem with radio button after upgrade
http://watir.com/examples/ :) On Thu, Jan 26, 2012 at 6:40 PM, Željko Filipin zeljko.fili...@gmail.comwrote: On Thu, Jan 26, 2012 at 5:09 PM, Lisa Crispin lisa.cris...@gmail.com wrote: Then I realized this page I found that looks like such nice doc is for the old Watir. Does that not exist for Watir 2? This is *really* what I need. Did you see this? http://rubydoc.info/gems/watir/frames http://rubydoc.info/gems/watir-webdriver/frames Something that shows all the possibilities (eg., can use name, id, value or whatever), and lots of examples. I started writing something like that in the book: https://github.com/zeljkofilipin/watirbook/blob/master/elements/link.md Željko -- 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 -- 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
[wtr-general] Problem with radio button
Hello, I need some help regarding radio button. In my application i created a poll named Test along with other polls There are two radio buttons beside each poll namely Update and Delete Now here i want to click on Delete radio button beside Test poll. How do i access? This is its html. input id=act2_165_delete type=radio value=delete name=act2 [165]/ Now while testing i dont know when a new poll is created what id it will have. I know one thing that the title is Test and i want to click on that delete radio having title Test. How do i access that particular radio button? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---