Re: [Wtr-general] watir and html source does not concur

2006-06-12 Thread Manish Sapariya
Hi, One more question related to this html. How do I distinguish between the two Add buttons? Thanks, Manish Manish Sapariya wrote: Hi, Here is one more html. -- $ie.frame(mainFrame).table(:id, /tblMain/i).cells.each { |l| if l.text_field(:name, hostName).exists? then

[Wtr-general] Hi - New to Watir, need more document information about Watir

2006-06-12 Thread Sikander
Hi All!! I am New to Watir. But very comfortable with this tool. I have basic level of understanding Watir and Ruby. The problem is I have lot of information about Ruby. But less information about Watir. Can anybody help me in getting lot more information about Watir from the basic

[Wtr-general] nil is not true with assert(ie.contains_text)

2006-06-12 Thread Adrian Rutter
I have a problem with assertions. If I write this: require 'watir' require 'test/unit' class TC_1 Test::Unit::TestCase def test_1 ie = Watir::IE.new ie.goto('http://wtr.rubyforge.org/') if assert(ie.contains_text(Watir)) p 'pass' else p 'fail' end

Re: [Wtr-general] Hi - New to Watir, need more document information about Watir

2006-06-12 Thread Zeljko Filipin
Take a look at these:http://openqa.org/watir/ (new home page)http://wtr.rubyforge.org/ (old home page) ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] Hi - New to Watir, need more document information about Watir

2006-06-12 Thread Michael Moore
I am New to Watir. But very comfortable with this tool. I have basic level of understanding Watir and Ruby. The problem is I have lot of information about Ruby. But less information about Watir. Can anybody help me in getting lot more information about Watir from the basic level to higher

Re: [Wtr-general] nil is not true with assert(ie.contains_text)

2006-06-12 Thread Zeljko Filipin
Try to changeif assert(ie.contains_text(Watir))toif ie.contains_text(Watir) ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] nil is not true with assert(ie.contains_text)

2006-06-12 Thread Bret Pettichord
You are referencing a buggy version of our documentation. Please see http://wtr.rubyforge.org/watir_user_guide.htmlcontains_text is in our API documentation. http://wtr.rubyforge.org/rdoc/classes/Watir/IE.htmlBretOn 6/12/06, Adrian Rutter [EMAIL PROTECTED] wrote:I have a problem with assertions.

[Wtr-general] nil is not true with assert(ie.contains_text)

2006-06-12 Thread Adrian Rutter
Brett wrote You are referencing a buggy version of our documentation. Please see http://wtr.rubyforge.org/watir_user_guide.html But if the text is not found, e.g. require 'watir' require 'test/unit' class TC_1 Test::Unit::TestCase def test_1 ie = Watir::IE.new

Re: [Wtr-general] how to test e-mail applications

2006-06-12 Thread Zeljko Filipin
Chris, Bret,it took me a few days, but now I can send, receive and parse e-mails. I have tried several solutions and ended with these:- receive e-mail - Net::POP3 ( http://www.ruby-doc.org/stdlib/libdoc/net/pop/rdoc/index.html)- send e-mail - Net::SMTP (

Re: [Wtr-general] how to test e-mail applications

2006-06-12 Thread Chris McMahon
Thanks for the report! I've only spiked a little of this, but I found Net::SMTP to be really easy and intuitive. There are a couple of mildly contradictory docs out on the web, though, so check around-- the easiest-looking way is probably the best way. I'll definitely be giving TMail a look.

Re: [Wtr-general] Wtr-general Digest, Vol 31, Issue 25

2006-06-12 Thread Adrian Rutter
Charley That's because you're swallowing the exception in your rescue clause. You want it to be raised and caught by Test::Unit so that it can see it for reporting. You need to either get rid of the rescue and ensure blocks or rethrow the exception (in which case you might want to wrap the

[Wtr-general] nil is not true with assert(ie.contains_text)

2006-06-12 Thread Adrian Rutter
sorry about the last header Charley That's because you're swallowing the exception in your rescue clause. You want it to be raised and caught by Test::Unit so that it can see it for reporting. You need to either get rid of the rescue and ensure blocks or rethrow the exception (in which case

Re: [Wtr-general] Watir 1.5.x Performance Issues?

2006-06-12 Thread Cain, Mark
I have seen significant slowness running my scripts (1.4.1 and 1.5.1) from inside Komodo 3.5 compared to the same scripts inside EclipseEclipse is much faster. Pouncer Note: I only run them inside the IDE when writing and/or debugging and NOT during actual testing. Just in case you were

[Wtr-general] Wait for control to exist

2006-06-12 Thread Bret Pettichord
So, i think everyone can at least agree that it would be nice to have a method on Watir elements that would not return until the element appeared on a page. E.g.: ie.button(:value, OK).dont_return_until_this_element_exists This would be analogous to the existing ie.wait method, except that that