Re: [wtr-general] Help Installing Watir
Hi, Are you trying to update behind PROXY ? On Sun, Jul 4, 2010 at 1:54 AM, Watir amkau...@hotmail.com wrote: So I have downloaded Ruby 186-26, and now I need help installing Watir. Every time in the command prompt I type gem update--system, it gives me a runtime error. Also when I type gem install watir, it states that could not find watir in any repository. Please help. Thanks a lot. -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com -- Regards, P.Raveendran http://raveendran.wordpress.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] click_no_wait, why so inconsistent?
Hi, Pls hav a look at this http://raveendran.wordpress.com/2010/06/08/watir-click_no_wait-for-checkbox/ Thanks On Sat, May 22, 2010 at 5:18 AM, cslumension cslumens...@gmail.com wrote: Want to download files, using a click_no_wait method, which works great the first time it's called, but each sequential call after that only highlights the item and no Save As box is displayed. There is a similar issue raised two years ago without a defined conclusion, http://groups.google.com/group/watir-general/browse_thread/thread/fb7938775929591b/bb7075ebc5c4ec8f?lnk=gstq=click_no_wait#bb7075ebc5c4ec8f I call the element like so, ie.link(:href, downloadURL.to_s).click_no_wait The element is defined as so, a id=download_btn class=buttonEnable onmouseout= onmouseover= onclick=MarkDownloadFunction(some identifier) href=/path/to/ zipfile.zipDownload/a the onclick DownloadFunction just sets the class to an enable/disable button to make it look like the button has been pressed with a new image from CSS. I found another thread about troubleshooting the click_no_wait here, http://groups.google.com/group/watir-general/browse_thread/thread/222b2bf7df33644/5d4e4f0890d75b7c?lnk=gstq=click_no_wait#5d4e4f0890d75b7c The patch for 1.6.5 doesn't seem to apply to me since I am using a different version of Ruby. I tried editing the watir/ page_container.rb file as explained in the previous thread's link to Jarmo's post, but the console just sits there. I get no feedback after running the command generated in the click_no_wait text file. Ever better, if I open up google in IRB and call click, click_no_wait on buttons, they work just fine, every time! Maybe there is something unique to this website that is stopping click_no_wait somehow, but I am out of ideas. My system, XP SP2 Ruby 1.8.7 (2010-01-10 patchlevel 249) [i386-mingw32] Watir 1.6.5 Thanks for taking the time to read through my post. -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com -- Regards, P.Raveendran http://raveendran.wordpress.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com
[wtr-general] Re: Iterate through radio buttons
Hello Joe, Thank you for your help. The results are as follow: I dont need radios 10-15 for my test. #-# # Attributes of radio 1 #-# id: ID_LIMIT_OPTION_BUTTON alt: class: Watir::Radio enabled?: true getState: false innerText: isSet?: false name: reqType type: radio value: Limit_1 visible?: true inspect: #Watir::Radio:0x3105f38 located=false how=:index what=1 value=nil #-# # Attributes of radio 2 #-# id: ID_PAYMENT_OPTION_BUTTON alt: class: Watir::Radio enabled?: true getState: false innerText: isSet?: false name: reqType type: radio value: Payment_3 visible?: true inspect: #Watir::Radio:0x32cc650 located=false how=:index what=2 value=nil #-# # Attributes of radio 3 #-# id: ID_REGISTRATION_OPTION_BUTTON alt: class: Watir::Radio enabled?: true getState: false innerText: isSet?: false name: reqType type: radio value: Registration_5 visible?: true inspect: #Watir::Radio:0x3184888 located=false how=:index what=3 value=nil #-# # Attributes of radio 4 #-# id: ID_LABELLING_OPTION_BUTTON alt: class: Watir::Radio enabled?: true getState: false innerText: isSet?: false name: reqType type: radio value: Labelling_7 visible?: true inspect: #Watir::Radio:0x30daa04 located=false how=:index what=4 value=nil #-# # Attributes of radio 5 #-# id: ID_TESTING_OPTION_BUTTON alt: class: Watir::Radio enabled?: true getState: false innerText: isSet?: false name: reqType type: radio value: Testing_8 visible?: true inspect: #Watir::Radio:0x31b6e8c located=false how=:index what=5 value=nil #-# # Attributes of radio 6 #-# id: ID_TARGET_OPTION_BUTTON alt: class: Watir::Radio enabled?: true getState: false innerText: isSet?: false name: reqType type: radio value: Target_2 visible?: true inspect: #Watir::Radio:0x30e0c4c located=false how=:index what=6 value=nil #-# # Attributes of radio 7 #-# id: ID_REPORTING_OPTION_BUTTON alt: class: Watir::Radio enabled?: true getState: false innerText: isSet?: false name: reqType type: radio value: Reporting_4 visible?: true inspect: #Watir::Radio:0x3192ec4 located=false how=:index what=7 value=nil #-# # Attributes of radio 8 #-# id: ID_CERTIFICATION_OPTION_BUTTON alt: class: Watir::Radio enabled?: true getState: false innerText: isSet?: false name: reqType type: radio value: Certification_9 visible?: true inspect: #Watir::Radio:0x2bc616c located=false how=:index what=8 value=nil #-# # Attributes of radio 9 #-# id: ID_OTHER_OPTION_BUTTON alt: class: Watir::Radio enabled?: true getState: true innerText: isSet?: true name: reqType type: radio value: Other_10 visible?: true inspect: #Watir::Radio:0x311f7e4 located=false how=:index what=9 value=nil #-# # Attributes of radio 10 #-# id: SinglereqDetailDeadLine_1 alt: class: Watir::Radio enabled?: true getState: true innerText: isSet?: true name: radioRange_reqDetailDeadLine_1 type: radio value: Single visible?: true inspect: #Watir::Radio:0x31944b8 located=false how=:index what=10 value=nil #-# # Attributes of radio 11 #-# id: RangereqDetailDeadLine_1 alt: class: Watir::Radio enabled?: true getState: false innerText: isSet?: false name: radioRange_reqDetailDeadLine_1 type: radio value: Range visible?: true inspect: #Watir::Radio:0x32a3020 located=false how=:index what=11 value=nil #-# # Attributes of radio 12 #-# id: CustomreqDetailDeadLine_1 alt: class: Watir::Radio enabled?: true getState: false innerText: isSet?: false name: radioRange_reqDetailDeadLine_1 type: radio value: Custom visible?: true inspect: #Watir::Radio:0x30e1458 located=false how=:index what=12 value=nil #-# # Attributes of radio 13 #-# id: SinglereqDetailExpiration_1 alt: class: Watir::Radio enabled?: true getState: true innerText: isSet?: true name: radioRange_reqDetailExpiration_1 type: radio value: Single visible?: true inspect: #Watir::Radio:0x325ec90 located=false how=:index what=13 value=nil #-# # Attributes of radio 14 #-# id: RangereqDetailExpiration_1 alt: class: Watir::Radio enabled?: true getState: false innerText: isSet?: false name: radioRange_reqDetailExpiration_1 type: radio value: Range visible?: true inspect: #Watir::Radio:0x3172bb0 located=false how=:index what=14 value=nil #-# # Attributes of radio 15 #-# id:
[wtr-general] Re: Iterate through radio buttons
This code should work, I mocked it up and ran as expected. $ie.radios.each_with_index do | radio, iIndex| # Adjust index as radios are 1 indexed and arrays are zero indexed iIndex = iIndex +1 if(($ie.radio(:index, iIndex).id == ID_OTHER_OPTION_BUTTON)) puts(Yes) else puts(NO) end end Joe On Jul 5, 5:51 am, Shlomit Gazit shlomitpatr...@gmail.com wrote: Hello Joe, Thank you for your help. The results are as follow: I dont need radios 10-15 for my test. #-# # Attributes of radio 1 #-# id: ID_LIMIT_OPTION_BUTTON alt: class: Watir::Radio enabled?: true getState: false innerText: isSet?: false name: reqType type: radio value: Limit_1 visible?: true inspect: #Watir::Radio:0x3105f38 located=false how=:index what=1 value=nil #-# # Attributes of radio 2 #-# id: ID_PAYMENT_OPTION_BUTTON alt: class: Watir::Radio enabled?: true getState: false innerText: isSet?: false name: reqType type: radio value: Payment_3 visible?: true inspect: #Watir::Radio:0x32cc650 located=false how=:index what=2 value=nil #-# # Attributes of radio 3 #-# id: ID_REGISTRATION_OPTION_BUTTON alt: class: Watir::Radio enabled?: true getState: false innerText: isSet?: false name: reqType type: radio value: Registration_5 visible?: true inspect: #Watir::Radio:0x3184888 located=false how=:index what=3 value=nil #-# # Attributes of radio 4 #-# id: ID_LABELLING_OPTION_BUTTON alt: class: Watir::Radio enabled?: true getState: false innerText: isSet?: false name: reqType type: radio value: Labelling_7 visible?: true inspect: #Watir::Radio:0x30daa04 located=false how=:index what=4 value=nil #-# # Attributes of radio 5 #-# id: ID_TESTING_OPTION_BUTTON alt: class: Watir::Radio enabled?: true getState: false innerText: isSet?: false name: reqType type: radio value: Testing_8 visible?: true inspect: #Watir::Radio:0x31b6e8c located=false how=:index what=5 value=nil #-# # Attributes of radio 6 #-# id: ID_TARGET_OPTION_BUTTON alt: class: Watir::Radio enabled?: true getState: false innerText: isSet?: false name: reqType type: radio value: Target_2 visible?: true inspect: #Watir::Radio:0x30e0c4c located=false how=:index what=6 value=nil #-# # Attributes of radio 7 #-# id: ID_REPORTING_OPTION_BUTTON alt: class: Watir::Radio enabled?: true getState: false innerText: isSet?: false name: reqType type: radio value: Reporting_4 visible?: true inspect: #Watir::Radio:0x3192ec4 located=false how=:index what=7 value=nil #-# # Attributes of radio 8 #-# id: ID_CERTIFICATION_OPTION_BUTTON alt: class: Watir::Radio enabled?: true getState: false innerText: isSet?: false name: reqType type: radio value: Certification_9 visible?: true inspect: #Watir::Radio:0x2bc616c located=false how=:index what=8 value=nil #-# # Attributes of radio 9 #-# id: ID_OTHER_OPTION_BUTTON alt: class: Watir::Radio enabled?: true getState: true innerText: isSet?: true name: reqType type: radio value: Other_10 visible?: true inspect: #Watir::Radio:0x311f7e4 located=false how=:index what=9 value=nil #-# # Attributes of radio 10 #-# id: SinglereqDetailDeadLine_1 alt: class: Watir::Radio enabled?: true getState: true innerText: isSet?: true name: radioRange_reqDetailDeadLine_1 type: radio value: Single visible?: true inspect: #Watir::Radio:0x31944b8 located=false how=:index what=10 value=nil #-# # Attributes of radio 11 #-# id: RangereqDetailDeadLine_1 alt: class: Watir::Radio enabled?: true getState: false innerText: isSet?: false name: radioRange_reqDetailDeadLine_1 type: radio value: Range visible?: true inspect: #Watir::Radio:0x32a3020 located=false how=:index what=11 value=nil #-# # Attributes of radio 12 #-# id: CustomreqDetailDeadLine_1 alt: class: Watir::Radio enabled?: true getState: false innerText: isSet?: false name: radioRange_reqDetailDeadLine_1 type: radio value: Custom visible?: true inspect: #Watir::Radio:0x30e1458 located=false how=:index what=12 value=nil #-# # Attributes of radio 13 #-# id: SinglereqDetailExpiration_1 alt: class: Watir::Radio enabled?: true getState: true
[wtr-general] Re: Iterate through radio buttons
I got your original code to work as well Joe $ie.radios.each do | oMyObject | if(oMyObject .id == ID_OTHER_OPTION_BUTTON) puts(yes) else puts(NO) end end -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com
[wtr-general] Recommendation Needed: FireWatir Scraping Framework
Hello I am looking for recommendations on which scraping framework to use in conjunction with FireWatir. It seems that scRUBYt, which is very nice, is kind of dead. scraPY is very active, but I havent found anyone implementing FireWatir with scraPY. The target is heavily loaded with iframes and javascript, so FireWatir is a must. I can use any framework that plays well with it. Any advice or pointers are appreciated. Thanks Eddie -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com
[wtr-general] Re: Iterate through radio buttons
See commented line, then below On Jul 3, 11:33 pm, Shlomit Gazit shlomitpatr...@gmail.com wrote: Joe, For example I was trying: $ie.radios.each do | radio | if($ie.radio(:id,ID_OTHER_OPTION_BUTTON)) ### This does the same thing every time puts(yes) else puts(NO) end end The output was 15 yes instead of 1. The thing being evaluated in your if statement is doing the same thing every time, it's basicly returning an object, which not being zero is going to be seen as true. Functionally you are saying if there is a radio button on the page with an ID value of then put yes Since nothing about that check changes, then each loop through it's going to report the same result.. (e.g. it's doing just what you told it to) Instead the If line should be written to use the value being set with each iteration, so that it will check each radio button in turn. You set tht to be called 'radio' so.. if radio.id == ID_OTHER_OPTION_BUTTON That's going to work because the code will loop through once for each radio button, and each time, that particular instace of the radio button is assigned to the variable 'radio', so it will have different contents each time, and you can check to see if the ID value is the one you want. Joedio's last posting is basically the same as above, but perhaps this provides a little more guidence so you see where you went wrong. -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com