Re: [wtr-general] Re: How to know if the checkbox is checked or not?

2012-12-19 Thread ehsan . ali
Hi, Please can you define about to_s which you wrote in a statement, becasue i am getting error of it. Thanks On Friday, April 3, 2009 6:00:59 PM UTC+5, Darin Duphorn wrote: Sorry it was checked instead of set. If you want to validate it true or false remember to set it to

[wtr-general] Failed 'assert' statement doesn't get rescued

2012-12-19 Thread captin
I'm pretty new to watir and I'm loving it so far, but I'm struggling to get the 'assert' to work the way I need it to. When I use 'assert' in a 'begin-rescue' block, a failure of the assertion never seems to trigger the rescue, and therefore I cannot log the error message to a file or grab a

Re: [wtr-general] Re: How to know if the checkbox is checked or not?

2012-12-19 Thread Željko Filipin
On Wed, Dec 19, 2012 at 7:18 AM, ehsan@wemotech.com wrote: Please can you define about to_s which you wrote in a statement, becasue i am getting error of it. to_s → string Returns a string representing obj. The default to_s prints the object’s class and an encoding of the

[wtr-general] Re: How to know if the checkbox is checked or not?

2012-12-19 Thread ehsan . ali
Hi, do you have skype id ? i am working on Watir,m so i need a little help in that when i needed. or please add me on Skype Name: ehsan.ali.2727 Thanks On Thursday, April 2, 2009 10:03:20 PM UTC+5, satish wrote: I have a checkbox, I have to perform check every time whether it is

Re: [wtr-general] Failed 'assert' statement doesn't get rescued

2012-12-19 Thread Željko Filipin
On Tue, Dec 18, 2012 at 6:18 PM, captin dmur...@rwbaird.com wrote: and therefore I cannot log the error message to a file or grab a screenshot or anything else. Rescuing exceptions so you can log the error message or take a screen shot is the wrong way to do it. My test/unit-fu is pretty

Re: [wtr-general] Re: How to know if the checkbox is checked or not?

2012-12-19 Thread Željko Filipin
On Wed, Dec 19, 2012 at 12:08 PM, ehsan@wemotech.com wrote: do you have skype id Are you asking the entire Google group? :) If you have a question, post it to the group. Željko -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice.

Re: [wtr-general] Failed 'assert' statement doesn't get rescued

2012-12-19 Thread captin
Thank you for your reply and for taking the time to assist me. As I stated in my OP, I'm new to watir. I've come across RSpec and Cucumber many times as I've been learning but have yet to dig into them. I will most likely be evaluating those in the near future, but I wanted to understand the

[wtr-general] Timeout error

2012-12-19 Thread sunitha m
I am using watir web driver to automate a website and extract data from it. There is a scenario where i have to save the loaded page as html and extract data from the table. For the page to load it takes more than 10 minutes and i get a timeout errors, while the process happens on the

Re: [wtr-general] Timeout error

2012-12-19 Thread Željko Filipin
On Wed, Dec 19, 2012 at 5:24 PM, sunitha m m.sunitha0...@gmail.com wrote: For the page to load it takes more than 10 minutes and i get a timeout errors So, the problem is that the page takes 10 minutes to open? What happens when you try to open the page manually? Can you share the URL?

Re: [wtr-general] Timeout error

2012-12-19 Thread Oscar Rieken
I would think that 10 minutes for a page to load is unacceptable for anyone. I would talk to the devs and tell them about this defect. On Wed, Dec 19, 2012 at 11:40 AM, Željko Filipin zeljko.fili...@gmail.comwrote: On Wed, Dec 19, 2012 at 5:24 PM, sunitha m m.sunitha0...@gmail.comwrote:

[wtr-general] Problems with Select Lists in my application

2012-12-19 Thread Marco Antonio Mamani Espinoza
I am doing some automation in my application, in one part there is a select list which fires an event on change, when I try to select an option there it is popup a window with a button in it (OK). The bad thing is that Watir keeps waiting something when I select an option. I need something

Re: [wtr-general] Failed 'assert' statement doesn't get rescued

2012-12-19 Thread Justin Ko
Since you are using Ruby 1.9.3, the line require 'test/unit' Will require the Minitest gem. In contrast, in Ruby 1.8.7, this would include the Test::Unit gem. If you do a rescue without a type specified, the default type is StandardError, which is a subclass of Exception. In Minitest, when

Re: [wtr-general] Failed 'assert' statement doesn't get rescued

2012-12-19 Thread Željko Filipin
On Wed, Dec 19, 2012 at 12:15 PM, Željko Filipin zeljko.fili...@gmail.comwrote: That said, I have simplified the code that you have posted a bit, and it rescues the exception on my machine. require 'test/unit' class TC_Sample Test::Unit::TestCase def test_01 begin

Re: [wtr-general] Failed 'assert' statement doesn't get rescued

2012-12-19 Thread captin
Gentlemen, thank you for the guidance. The MiniTest functionality corrected my issue. @Željko - The bug you mention is interesting...also interesting is if you put single quotes around the text, it will still display with double quotes. Captin On Wednesday, December 19, 2012 3:19:41 PM

Re: [wtr-general] Failed 'assert' statement doesn't get rescued

2012-12-19 Thread Željko Filipin
On Wed, Dec 19, 2012 at 10:40 PM, captin dmur...@rwbaird.com wrote: also interesting is if you put single quotes around the text, it will still display with double quotes. You can create a ruby string several ways, two of them are single and double quotes, but when you ask Ruby to output the

[wtr-general] Open browser test automation at WMF

2012-12-19 Thread Željko Filipin
I think this blog post will be interesting to people on this list: http://watir.com/2012/12/20/open-browser-test-automation-at-wmf/ Disclaimer: Chris, the author of the blog post is my boss. By the way, if you or your company are doing something interesting with Watir, let me know here or

Re: [wtr-general] Timeout error

2012-12-19 Thread sunitha m
Hi Zeljko, Its official, cannot share it. Even manually it takes about 10 minutes to open. Thanks, sunitha. On Wednesday, December 19, 2012 11:40:46 AM UTC-5, Željko Filipin wrote: On Wed, Dec 19, 2012 at 5:24 PM, sunitha m m.suni...@gmail.comjavascript: wrote: For the page to load it

Re: [wtr-general] Looong pauses while calling present?, exists?, etc... - why do you think this happens?

2012-12-19 Thread Nigel
OSX 10.8.2 and Ubuntu 12.10 -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com