Re: [wtr-general] Use Mobile Save Paper

2010-02-25 Thread Željko Filipin
Prasad, Bulk e-mails are not welcome at watir-general. I have removed your post from the web site. Željko -- watir.com - community manager pledgie.com/campaigns/2982 - donate to Watir watirpodcast.com - host testingpodcast.com - podcasts on software testing. all of them -- You received this

[wtr-general] Re: Switching from Test::Unit to RSpec - tips/gotchas? Short code review.

2010-02-25 Thread Jarmo Pertman
First of all - RSpec is a good choice :) I wouldn't use so many nested describe blocks - it makes it hard to understand, what before and after blocks are run at which time and so on. Just keep one describe block or create different describe blocks. Also, I would lose shared_examples for this

Re: [wtr-general] Re: Firefox delays on every link clicked

2010-02-25 Thread terevos
Unfortunately, I cannot post the HTML code or give you a link. The site is for a government contract. I've tried the same general code on something like Slashdot.org to login and had no problems with delays. On Feb 25, 2010, at 1:43 AM, Angrez Singh wrote: can you post the HTML code? or a

[wtr-general] Ruby array question

2010-02-25 Thread xguarder
Question about an array. Say I have the following array... textlist = [Apple, Orange, Lemon, Grape, Orange, Melon, Orange, Banana] if I did textlist.index(Orage), I would get 1 returned. Can anyone tell me how I could retrieve the index number of the 2nd instance of Orange? Thanks in advance!

[wtr-general] undefined method `form' for nil:NilClass (NoMethodError) error

2010-02-25 Thread arti
undefined method `form' for nil:NilClass (NoMethodError) error when trying to fill a form with nested tables in watir I don't know why I am getting this error. I have exhausted every avenue that I can think of Code Snippet: prelimtable=

[wtr-general] Re: Switching from Test::Unit to RSpec - tips/gotchas? Short code review.

2010-02-25 Thread Jarmo Pertman
I'm answering into the group directly - maybe someone else finds this also useful. Think of the helpers as a collection of methods which will be used throughout the tests. You could do many modules. Some modules would be specific to your current application under test and some others would be

[wtr-general] Re: Switching from Test::Unit to RSpec - tips/gotchas? Short code review.

2010-02-25 Thread Adam Reed
Thanks Jarmo! There are a lot of similarities between this format and what I was previously doing with Watir, as well as some good new information. I think learning the new material for RSpec put a stimga of sorts on the organization and these replies definitely cleared a few things up for me.

[wtr-general] How to save or read a PDF file using PDF toolkit when PDF is embeded in a browser

2010-02-25 Thread bk
Hello, I'm trying to read a PDF file. I know how to get ruby to read a PDF but my problem is when I click on a link it does not pop up a modal window asking to open or save file but It directly opens up the PDF in another browser. The browser windows does not have any file menu to save the file

Re: [wtr-general] How to save or read a PDF file using PDF toolkit when PDF is embeded in a browser

2010-02-25 Thread arihan sinha
have u tried with reigstry keys because i ve faced this problem while the link triggers the ppt. so by changing the registry key , it would prompt a save/open window or directly open in the new browser etc. On Thu, Feb 25, 2010 at 6:51 PM, bk bkhambadk...@gmail.com wrote: Hello, I'm trying to

[wtr-general] Re: How to save or read a PDF file using PDF toolkit when PDF is embeded in a browser

2010-02-25 Thread bk
No I haven't tried it, but i don't have admin right to mess around with the registry keys. is there any other method? Thanks On Feb 25, 2:45 pm, arihan sinha arihan.si...@googlemail.com wrote: have u tried with reigstry keys because i ve faced this problem while the link triggers the ppt. so

[wtr-general] Re: Ruby array question

2010-02-25 Thread Adam Reed
Reposting my favorite approach from comp.lang.ruby google group (http://groups.google.com/group/comp.lang.ruby/browse_thread/thread/ 7405cd6c99bea121#): class Array def indexes_of(obj) indexes = Array.new self.each_with_index {|s,i| indexes i if s === obj } return

[wtr-general] Re: Question about watir and celerity

2010-02-25 Thread Alister Scott
You don't need to require Watir. On Feb 25, 5:12 pm, karim rayani karim.ray...@gmail.com wrote: Clearity is a headless implementation of the Watir API but it runs on the java platform, Karim Rayani On Wed, Feb 24, 2010 at 8:53 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On

[wtr-general] Re: Question about automation Gmail with Watir

2010-02-25 Thread Alister Scott
It makes sense to get rid of the Gmail example, because why you would ever want to automated a GUI to send an email is the question. It is *so* easy to send an email through ruby itself. On Feb 24, 7:56 pm, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Tue, Feb 23, 2010 at 9:12 PM, Bill

Re: [wtr-general] Re: Question about automation Gmail with Watir

2010-02-25 Thread Felipe Knorr Kuhn
Google engineers might be using Watir to test their upcoming Gmail Labs apps! j/k :) FK On Thu, Feb 25, 2010 at 7:42 PM, Alister Scott alister.sc...@gmail.comwrote: It makes sense to get rid of the Gmail example, because why you would ever want to automated a GUI to send an email is the

[wtr-general] Re: Question about automation Gmail with Watir

2010-02-25 Thread Alister Scott
Or spammers might be using Watir to spam the world :( On Feb 26, 9:01 am, Felipe Knorr Kuhn fkn...@gmail.com wrote: Google engineers might be using Watir to test their upcoming Gmail Labs apps! j/k :) FK On Thu, Feb 25, 2010 at 7:42 PM, Alister Scott alister.sc...@gmail.comwrote: It

Re: [wtr-general] Re: Firefox delays on every link clicked

2010-02-25 Thread Angrez Singh
It would be difficult to help without looking at the HTML to find out the cause of the delays. On Thu, Feb 25, 2010 at 7:42 PM, terevos tere...@gmail.com wrote: Unfortunately, I cannot post the HTML code or give you a link. The site is for a government contract. I've tried the same general