[wtr-general] Is it possible to run all tests one by one
Hi i am newbie to WatIR, I have been using QTP for the past two years and recently concentrating on WatIR. Please clear my doubt. In QTP we can run multiple tests as per our requirement by using multi test manager. In WatIR is any UI available to run tests as per our wish, like continuous play, on failure run next test, or close application If Is it possible to run multiple tests in WatIR please let me know. Thanks, Prince3105 --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Should a logger be included in Watir?
Hi. Remove the logger and have it in examples instead. Jarmo. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Please review - Text.Exist method
Hi Experts, I am using below code to check a particular text is exist in a page. Please review the code whether it is a good one or not. Give me your valuable suggestion to write effective codes. require 'watir' ie = Watir::IE.new ie.goto(http://10.1.193.109/itrade/Login.aspx;) ie.maximize ie.text_field(:name,txtUserName).set(wcorp) ie.text_field(:name,txtPassword).set(wcorp123) ie.button(:name,btnSubmit).click ie.form(:id,form1).table(:id,tbl0).cell(:id,el6).click ie.form(:id,form1).table(:id,tbl0).cell(:id,el6).fire_event (onMouseOver) ie.form(:id,form1).table(:id,tbl7).cell(:id,el59).click ie.form(:id,form1).span(:text,Organisation).flash if ie.text.include? Organisation puts Pass else puts Fail end ie.form(:id,form1).link(:text,Logout).click I am having one doubt, If the same text existing more than one time in the same page how can we identify it? Thanks, Prince3105 --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] How to check a text_field focus status
Hi Experts, I am a newbie to WatIR. Can we check whether a text field is focused or not. If is it possible please post the solution. Thanks, Prince3105 --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Looping through LI elements within a specific DIV tag
Hi all, Is there a shortcut code for looping through all the LI elements within a DIV tag? I want to find number of LI elements within a DIV tag having id, 'listImages'. Also want to find id's of those LI elements. Thanks, Natasha --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Looping through LI elements within a specific DIV tag
#Cycles through all the li Tags counter = 0 $ie.div(:attribute,attribute_valu).lis.each {|li| counter = counter + 1 } On Nov 24, 10:48 am, Natasha [EMAIL PROTECTED] wrote: Hi all, Is there a shortcut code for looping through all the LI elements within a DIV tag? I want to find number of LI elements within a DIV tag having id, 'listImages'. Also want to find id's of those LI elements. Thanks, Natasha --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Watir Podcast
I am recording a show with Paul Rogers, Watir co founder. Friday, November 28th, 6pm (utc+1). If you have a question for him, send it here. I will be monitoring #watir irc channel during the recording, so you could post your last minute question there too. A few people said they are interested in co-hosting the show. If the time is right for you, please let me know. If you never heard about Watir podcast, take a look at watirpodcast.com Željko --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Watir Podcast
On Mon, Nov 24, 2008 at 18:32, Moochie [EMAIL PROTECTED] wrote: I'd like to know how watir may work with application using flex and flash? I am not sure I understood the question. Are you asking will Watir ever be able to test flex and flash applications? How involved he is with WatrN? Not sure if I understood this one too. :) Are you asking about Watir or Watin? Željko --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: How to click dijit button char
is there anything in the html that is defining something like an 'onclick' for that thing? all I see in the code above is basically just text..and normal text isn't clickable as far as I know. maybe there's some other object that's actually overlapping that button On Nov 21, 11:30 am, maven999 [EMAIL PROTECTED] wrote: Hi all, I have a drop down menu that can only be accessed by clicking on a down arrow character (▼) on the combo box. The html for the click location is pasted below: div class=dijitDownArrowButtonInner wairole=presentation role=presentation div class=dijitDownArrowButtonChar▼/div /div Flashing the button works: $ie.div(:class, 'dijitDownArrowButtonInner').flash But clicking it does not work: $ie.div(:class, 'dijitDownArrowButtonInner').click Any ideas? Also, since it is not a traditional select_list, how do I select an item when I do get the drop-down list to appear? Thanks! --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: How to click dijit button char
Hi Chuck, Here is the preceding html which I should have included in my original question: tr class=dijitReset td class=dijitReset dijitRight dijitButtonNode dijitDownArrowButton dijitArrowButtonActive width=0% dojoattachevent=onmousedown:_onArrowMouseDown,onmouseup:_onMouse,onmouseenter:_onMouse,onmouseleave:_onMouse dojoattachpoint=downArrowNode div class=dijitDownArrowButtonInner wairole=presentation role=presentation div class=dijitDownArrowButtonChar▼/div /div /td /tr Thanks! On Nov 24, 12:44 pm, Chuck vdL [EMAIL PROTECTED] wrote: is there anything in the html that is defining something like an 'onclick' for that thing? all I see in the code above is basically just text..and normal text isn't clickable as far as I know. maybe there's some other object that's actually overlapping that button On Nov 21, 11:30 am, maven999 [EMAIL PROTECTED] wrote: Hi all, I have a drop down menu that can only be accessed by clicking on a down arrow character (▼) on the combo box. The html for the click location is pasted below: div class=dijitDownArrowButtonInner wairole=presentation role=presentation div class=dijitDownArrowButtonChar▼/div /div Flashing the button works: $ie.div(:class, 'dijitDownArrowButtonInner').flash But clicking it does not work: $ie.div(:class, 'dijitDownArrowButtonInner').click Any ideas? Also, since it is not a traditional select_list, how do I select an item when I do get the drop-down list to appear? Thanks! --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Watir Podcast
2008/11/24 Darin Duphorn [EMAIL PROTECTED] I was asked to automate an application that is written in .Net. I test .net applications for years, and I use watir (ruby) all the time. Why do you want to use watin (.net)? I recorded a show with Jeroen van Menen (WatiN Lead Developer). You can listen to it if you are interested. http://watirpodcast.com/jeroen-van-menen-on-watin/ Željko --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Watir Podcast
2008/11/24 Darin Duphorn [EMAIL PROTECTED] Will watir ever be able to test flex and flash applications? For the other one, I was asked to automate an application that is written in .Net. I'm just wondering if Paul or Bret have been working with the individuals that have put together Watin. Thanks for the clarification. I will ask Paul. Željko --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Popup is not shown and the script times out!
HI all, I am new to Watir and am still in the process of learning (with the examples in the site: http://wiki.seleniumhq.org/display/WTR/Tutorial). I am trying to handle a popup (when deleting email without actually selecting any email for deletion) from the Yahoomail web page. The popup does not even show up and the script times out. But when I manually click the Delete button, the Pop up does show up. This is the code I used: require 'watir' require 'watir/ie' require 'test/unit' require 'watir/contrib/enabled_popup' class TC_Popups Test::Unit::TestCase ie = Watir::IE.new ie.goto(http://www.mail.yahoo.com;) #login into Yahoo mail ie.text_field(:name, login).set(loginID) ie.text_field(:name, passwd).set(loginpswd) ie.button(:name, .save).click #Goto into the Inbox puts select the Inbox link ie.span(:id, _test_Inbox).click # Select delete button without selecting any email to delete puts Select the Delete button ie.table(:text, Delete).click_no_wait #To handle the popup - code Burrowed from http://wiki.seleniumhq.org/display/WTR/JavaScript+Pop+Ups Timeout::timeout(15)do begin if ie.enabled_popup hwnd = ie.enabled_popup(15) w = WinClicker.new w.makeWindowActive(hwnd) w.clickWindowsButton_hWnd(hwnd,OK) end rescue Timeout::Error puts 'No popup existed' end end end I can see the Delete button being selected, but there is no pop up. This is the error I am getting in my cmd prompt: - c:/ruby/lib/ruby/gems/1.8/gems/commonwatir-1.6.2/lib/watir/waiter.rb: 59:in `wait _until': Timed out after 4.14 seconds. (Watir::Exception::TimeOutException) from c:/ruby/lib/ruby/gems/1.8/gems/commonwatir-1.6.2/lib/ watir/waiter.r b:80:in `wait_until' from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ contrib/enable d_popup.rb:10:in `enabled_popup' from C:/Documents and Settings/NK/Desktop/Watir Scripts/ popup.rb:33 from c:/ruby/lib/ruby/1.8/timeout.rb:56:in `timeout' from C:/Documents and Settings/NK/Desktop/Watir Scripts/ popup.rb:31 --- Can someone point out what I am doing wrong? Thanks in advance. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Was(Re: Watir Podcast) Now(Ruby and .Net)
I don't want to answer Paul's questions for him, but everyone should understand that Watir is not for Ruby applications. It is for web applications written in any language. It works great for .Net applications. Bret aidy lewis wrote: Hi, For the other one, I was asked to automate an application that is written in .Net. I'm just wondering if Paul or Bret have been working with the individuals that have put together Watin. There doesn't appear to be a good form on Watin like the Watir forms, I'm just curious on the support for it. Watir and Watin are separate projects, even though obviously Watin is based on Watir. There is a Ruby .Net bridge: Not sure how useful it will be though. http://rubydotnet.sourceforge.net/ Aidy --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---