[Wtr-general] How to pick the last word in the sentence
Hi All, Pleas can you help me finding out the last word in the sentence displayed on the web page. Have look at the HTML snippet. Regards Sapna ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
[Wtr-general] Reading Static data
Hi How can i read static data from the application.i had a test case that a static message like file successfully added came how can i read the data. my intention is i need to validate that and proceeds to next testcase. i would appricate if any can help in this Regards murali ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Reading Static data
Hi Murali, Try ie.text.include? file successfully added Zeljko -- ZeljkoFilipin.com ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Reading Static data
thnx ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
[Wtr-general] Exist method is avaliable in WATIR
Hi Exist method is avaliable in WATIR. if it is there how it will be used. Regards ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Reading Static data
Hi, maybe you can use assert(ie.contains_text(file successfully added), Message if failed) Regards, Carsten Neumann Carsten Neumann Auszubildender encoway GmbH Buschhöhe 2 28357 Bremen Tel +049 (0)421 24677-0 Fax +49 (0)421 24677-10 email: [EMAIL PROTECTED] Web: www.encoway.de -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von murali Gesendet: Montag, 9. Juli 2007 12:46 An: wtr-general@rubyforge.org Betreff: [Wtr-general] Reading Static data Hi How can i read static data from the application.i had a test case that a static message like file successfully added came how can i read the data. my intention is i need to validate that and proceeds to next testcase. i would appricate if any can help in this Regards murali ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Exist method is avaliable in WATIR
Hi Murali, Try this b.link(:text, Images).exist? = true or this b.link(:text, Images).exists? = true Zeljko -- ZeljkoFilipin.com ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Reading Static data
I had a similar problem and contains_text did work for me. ie.contains_text(file successfully added) ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Exist method is avaliable in WATIR
Thnx for ur concern i tried this method using IF condition . iam faild to get the answer. actually if Active Categories should be 9 only this comes i need to click on the cancel button if not it should create a category. can u plz tel me how it vil be use with IF statment ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Exist method is avaliable in WATIR
if (ie.link(:text, Hello).exists?) puts the text link exists else ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Exist method is avaliable in WATIR
Thanx Madam If u have any docs related to WATIR plz send to my mail id [EMAIL PROTECTED] Reagrds Murali ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Exist method is avaliable in WATIR
On 7/9/07, murali [EMAIL PROTECTED] wrote: If u have any docs related to WATIR Take a look at WATIR User Guide at http://wtr.rubyforge.org/watir_user_guide.html. Zeljko ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
[Wtr-general] Does Sending Keys work on windows 2003 server OS?
I have made a watiJ web testing script which involves sending Enter key for submitting some data. this script worked fine on windowsXp, but doesn't work the machine with windows 2003. Now we are thinking about writing the same script in watiR. Have anyone tried sending keys on windows 2003 server edition through watir?? ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
[Wtr-general] hidden control..
i have this html code: input type=hidden how can i find out with watir if it is hidden or not? ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] hidden control..
On 7/9/07, mihai [EMAIL PROTECTED] wrote: i have this html code: input type=hidden how can i find out with watir if it is hidden or not? Hi Mihai, Well, it's type is hidden. How could it be not hidden? Zeljko -- ZeljkoFilipin.com ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Does Sending Keys work on windows 2003 server OS?
From what I've seen, send keys works just fine in Windows Server 2003. ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Having problems figuring out what to click
Excellent!!! That did the trick. Thanks loads!!! ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Recovery System in WATIR
Lavanya Lakshman wrote: I would appreciate if you could give more inputs on the features? I added the IE.find command to support error recovery. You also may want to look at Aslak Hellesoy's post on how he captured screens when watir tests failed. Bret ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
[Wtr-general] Selecting controls in a dialog box
When I click a button on the web page, it displays a dialog. Title: Web Page Dialog Controls: * one select list * one text field * two buttons (OK, Cancel) How do I access the dialog box? How do I select an item from the list? Do I use the Watir::IE.select_list.getAllItems() call? How do I enter data in the text field? How do I click on the buttons? Thanks in advance. ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Selecting controls in a dialog box
---BeginMessage--- this sounds like a modal dialog box Ive never used them, but there should be unit tests and its been mentioned on the list many times, so you should be able to search the archives for sample code Paul - Original Message - From: Matt Berney [EMAIL PROTECTED] Date: Monday, July 9, 2007 1:17 pm Subject: [Wtr-general] Selecting controls in a dialog box To: wtr-general@rubyforge.org When I click a button on the web page, it displays a dialog. Title: Web Page Dialog Controls: * one select list * one text field * two buttons (OK, Cancel) How do I access the dialog box? How do I select an item from the list? Do I use the Watir::IE.select_list.getAllItems() call? How do I enter data in the text field? How do I click on the buttons? Thanks in advance. ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general ---End Message--- ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] hidden control..
no...i want something like : ie.button(..).exist? but ie.button().hidden? i want to tell me if the control is hidden or not because that button and other control appear if i press the Show Advanced option button and hides if i press the Hide Advanced option and i want to test if the show.. button is pressed and the controls are not hidden or if the hide.. buttond is pressed and they are hidden ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] hidden control..
there is a .hidden? method available in the user contrib section on the wiki I think. Or the email archives. Some submitted it, so it does exist. - Original Message - From: mihai [EMAIL PROTECTED] Date: Monday, July 9, 2007 2:34 pm Subject: Re: [Wtr-general] hidden control.. To: wtr-general@rubyforge.org no...i want something like : ie.button(..).exist? but ie.button().hidden?i want to tell me if the control is hidden or not because that button and other control appear if i press the Show Advanced option button and hides if i press the Hide Advanced option and i want to test if the show.. button is pressed and the controls are not hidden or if the hide.. buttond is pressed and they are hidden ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] NoMethodError for verify method in assertions.rb
Tiffany Fodor wrote: I just added that line to the rest of the require/include statements at the beginning of my script and it did the trick. It is a common practice to put the require and include statements together, but I don't recommend it. I intend to remove all examples of this from the Watir unit tests and examples. My view is that it is best to put the includes where you need them. If you put them on the top of the file, you are modifying the global Object class, which, someday, could have unfortunate consequences. Include is a mixin and supports a form of multiple inheritance. I think it should be used in this context. Bret ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
[Wtr-general] Recommended version of Ruby
What version of Ruby should we recommend? After a recent discussion we agreed that the rdoc (readme.rb) should read: Best is to use Ruby 1.8.2-14 or later. However, if you are using the Watir::IE#modal_dialog method, you must use Ruby 1.8.2-14 and not a more recent version. Watir (in general) will not work with Ruby 1.8.1-13. (This version of Ruby has a bad WIN32OLE library.) I revised this recommendation to this thus in the new (unpublished) website: First you need to install Ruby:http://rubyforge.org/frs/?group_id=167 using the one-click installer for Windows. *We recommend Ruby 1.8.2-14 or later.* However, if you wish to use Watir's support for the *IE web modal dialog* then you must use Ruby 1.8.2-14:http://wiki.openqa.org/display/WTR/Installation and not a more recent version. This dialog is posted with the showModalDialog() JavaScript command and is supported with Watir's ie.modal_dialog command. However, the wiki page for installing recommends 1.8.2-14 for everyone. http://wiki.openqa.org/display/WTR/Install+Ruby I was surprised when i found this and started a discussion with Zeljko on the page, but thought the issue might be of more general interest. Personally, i think that people should be using the latest generally available version of Ruby. There continue to be improvements with it. For example I recently reported several Ruby bugs that interfered with integrating Watir with Cruise Control. http://www.io.com/~wazmo/blog/archives/2007_04.html. At this point, we see problems in both 1.8.5 and 1.8.6, but expect that 1.8.7 will have these problems fixed and will be encouraging a move there when it happens. Should our recommendation for newer versions of Ruby be more emphatic? Another question regards the modal dialog support. I don't know if the community understands that at this point i am abandoning this functionality. I would love to see someone take it over and make it so that it was dependent on a specific version of Ruby. But i don't expect that to happen. But we can't allow this to say that all users should stick with 1.8.2 until the end of time. For example, rubygems in 1.8.2 does not support the --install-depencies argument, which makes installing via gem much more complicated (esp. when i publish the gem to rubyforge.org). So once this is done, i will probably be telling people NOT to use 1.8.2, because i think it is more important to make our install instructions simple. We can have alternate instructions for the people who need the modal_dialog support. I'd appreciate your thoughts and questions. Bret ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
[Wtr-general] need help on Data Driven
Hi every one, iam facing problem with the data driven. have glance of my code and let me know where i did mistake. excel= WIN32OLE::new('excel.Application') workbook=excel.Workbooks.Open('D:\Documents and Settings\mmopur\Desktop\IPE Aut\test.xls') worksheet=workbook.Worksheets(1) worksheet.Select excel ['Visible'] #worksheet.Range('a2') ['Value'] category=worksheet.Range('a2:a4') ['Value'] line = '1' while worksheet.Range(a#{line})['Value'] line.succ! ie.text_field(:name,ctl00$ContentPlaceHolder1$txtCategory).set(category) when i run the script iam getting the errors as belo mentioned c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:3431:in `+': can't convert Array into S ring (TypeError) from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:3431:in `doKeyPress' from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:3427:in `each' from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:3427:in `doKeyPress' from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:3393:in `set' from D:/Documents and Settings/mmopur/Desktop/IPE Aut/datadriven.rb:59 plz look into that and do needful Regards Murali ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general