[Wtr-general] FireWatir
Hi, Allcould anyone tell how long does it take for running the mozilla_all_tests.rb on firefox? Thanks a lotGegegege qian [EMAIL PROTECTED] wrote:HI: AllI'm trying to use firewatir, but could not make it work. Please give me some help.1)I have download "watir-1[1].5.0.980.gem" from 'http://wiki.openqa.org/display/WTR/Development+Builds'and using command 'gem install watir' to install it. THe watir sits in gems folder. 2)I got the firefox code and jssh-20060221-WINNT.xpi parts from 'http://svn.openqa.org/svn/watir/branches'and install them according to the installation doc.3)I make sure I type firefox.exe -jssh, just one hypen4)I got the msg of Welcome to the Mozilla _javascript_ Shell! 5)when I run mozilla_all_tests.rb, the error msg i got is"ruby mozilla_all_tests.rb./../mozilla_unittests/setup.rb:35:in `start_ie_with_logger': uninitialized constant Watir::Firefox (NameError)from ./../mozilla_unittests/setup.rb:49from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in `require__'from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in `require'from mozilla_all_tests.rb:6Exit code: 1" I have search the Wtr-general, but until now I could not figure out what's wrong. Please help. Thank you very much! Gege How low will we go? Check out Yahoo! Messengers low PC-to-Phone call rates.___Wtr-general mailing listWtr-general@rubyforge.orghttp://rubyforge.org/mailman/listinfo/wtr-general Ring'em or ping'em. Make PC-to-phone calls as low as 1¢/min with Yahoo! Messenger with Voice.___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] FireWatir
Thank you ALL! Rodrigo Julian Martin [EMAIL PROTECTED] wrote:Hello!I guess that the last time I¡¯ve runned mozilla_all_tests took me 2 hours more or less¡Cheers!From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of gege qianSent: Lunes, 22 de Mayo de 2006 11:31 a.m.To: wtr-general@rubyforge.orgSubject: [Wtr-general] FireWatir Hi, Allcould anyone tell how long does it take for running the mozilla_all_tests.rb on firefox?Thanks a lotGegegege qian [EMAIL PROTECTED] wrote: HI: AllI'm trying to use firewatir, but could not make it work. Please give me some help.1)I have download "watir-1[1].5.0.980.gem" from 'http://wiki.openqa.org/display/WTR/Development+Builds'and using command 'gem install watir' to install it. THe watir sits in gems folder. 2)I got the firefox code and jssh-20060221-WINNT.xpi parts from 'http://svn.openqa.org/svn/watir/branches'and install them according to the installation doc.3)I make sure I type firefox.exe -jssh, just one hypen4)I got the msg of Welcome to the Mozilla _javascript_ Shell! 5)when I run mozilla_all_tests.rb, the error msg i got is"ruby mozilla_all_tests.rb./../mozilla_unittests/setup.rb:35:in `start_ie_with_logger': uninitialized constant Watir::Firefox (NameError)from ./../mozilla_unittests/setup.rb:49from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in `require__'from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in `require'from mozilla_all_tests.rb:6Exit code: 1"I have search the Wtr-general, but until now I could not figure out what's wrong. Please help.Thank you very much!Gege How low will we go? Check out Yahoo! Messenger¡¯s low PC-to-Phone call rates.___Wtr-general mailing listWtr-general@rubyforge.orghttp://rubyforge.org/mailman/listinfo/wtr-general Ring'em or ping'em. Make PC-to-phone calls as low as 1?/min with Yahoo! Messenger with Voice.___Wtr-general mailing listWtr-general@rubyforge.orghttp://rubyforge.org/mailman/listinfo/wtr-general Feel free to call! Free PC-to-PC calls. Low rates on PC-to-Phone. Get Yahoo! Messenger with Voice___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Asking two questions related on javascript pop up window
Hi, Paul:Thanks for your help.There is a text field whichI can set the date. LixinPaul Carvalho [EMAIL PROTECTED] wrote: Hi there. I am a different Paul. While I can't offer any additional help on your first problem, I do have a few suggestions for your second question.Unless I am misreading the code below, it looks like there is a text input field right beside the calendar.png icon. In our web app we have similar places where the user can click on these calendar icons when prompted to enter a date. When I am scripting I just ignore the calendar popups - too much effort required for very little gain. Why don't you just type the date you want into the text field next to the calendar icon? Taking a guess from the HTML below, I would expect the following to work: ie.text_field( :id, "consents_530" ).set( '12/31/2005' ) # the code hints at the format: "%m/%d/%Y" If you are set on scripting the pop-up calendar control, how does SpySmith recognise the object? In our app, the pop-up calendar appears as new table within the Frame, not as a separate (_javascript_ or IE) window, so I just reference the new table's ID tag. I played around with navigating our calendar control using Watir but it seemed to be a waste of time. It takes me one line to enter a date into the input field and continue, while it could take me over a dozen lines to do the same thing using the popup calendar control. Bells and whistles, man. Just ignore them if you can work around them. =)Good luck. Paul. On 13/04/06, gege qian [EMAIL PROTECTED] wrote: 2)In our application , we have a calendar image, which user can click on for selecting the date. I do not know if there is a way to a)pop up the calendar, b)and select the date.the html source code is as follows:table class="header_info"tr valign="top"td label *Date consented/labelbr / input class="date" id="consents_530" name="consents[530][date_consent_signed]" size=12 type="text" /br //tdtd br /img alt=Calendar class=date id=consents_530_b src="" title="Show calendar"/ script type="text/_javascript_"Calendar.setup({ inputField:"consents_530", button:"consents_530_b", cache:true, ifFormat:"%m/%d/%Y", firstDay:0, range:[1956,2008], showOthers:true, step:1 })/script/td/tr/table ___Wtr-general mailing listWtr-general@rubyforge.orghttp://rubyforge.org/mailman/listinfo/wtr-general Yahoo! Messenger with Voice. PC-to-Phone calls for ridiculously low rates.___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
[Wtr-general] Asking two questions related on javascript pop up window
Hi Paul I'm new to watir and ruby. I have two questions to ask 1) i read the post on http://rubyforge.org/pipermail/wtr-general/2005-April/001427.html. I tried the way paul suggested, but never succeed.here is the coderequire 'watir/WindowHelper'require 'watir'require 'toolkit/onc_login'require 'toolkit/onc_logout'require 'toolkit/_javascript_Hd' login $ie.link(:text, "Search for Protocol").click $ie.textField(:id, "str").set("J0260") $ie.button(:name, "search").click listTable = $ie.table(:id, "enroll_list") # here, there are some hidden field, maybe that's why the number of rows is 22$ie.checkbox(:index, 5).set$ie.button(:value, "Consent").click startClicker("OK", 3)$ie.button("Submit").click helper = WindowHelper.newhelper.push_confirm_button_ok() The button on the pop up window was never clicked would you mind giving me some feedback on this2)In our application , we have a calendar image, which user can click on for selectingthe date. I do not know if there is a way to a)pop up the calendar, b)and select the date.the html source code is as follows:table class="header_info"tr valign="top"td label *Date consented/labelbr /input class="date" id="consents_530" name="consents[530][date_consent_signed]" size=12 type="text" /br //tdtd br /img alt=Calendar class=date id=consents_530_b src="" title="Show calendar"/script type="text/_javascript_"Calendar.setup({ inputField:"consents_530", button:"consents_530_b", cache:true, ifFormat:"%m/%d/%Y", firstDay:0, range:[1956,2008], showOthers:true, step:1 })/script/td/tr/tableThanks a lot gege Blab-away for as little as 1¢/min. Make PC-to-Phone Calls using Yahoo! Messenger with Voice.___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general