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

2015-01-27 Thread jackstaposition
hi! has this issue been solved already? got something like this: Dependent to an existing member? label class=custom-checkbox checked data-bind=css: { checked: isDependent() }, click: toggleAsDependent spanDependent to an existing member?/span input type=checkbox/ i/ /label I have a method

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

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] 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.

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

2009-04-11 Thread Jarmo Pertman
Yup, you are correct, but I wanted to show it in the == context. Anyway, it was good for you to point out the correct usage, which I have been using also so that everyone else (hopefully) would use that approach too :) Jarmo On Apr 7, 7:08 pm, Bret Pettichord b...@pettichord.com wrote: Even

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

2009-04-07 Thread Jarmo Pertman
Why are you making it to string and comparing with string representation of TrueClass? You also had only one '=', which makes your if to be always true. Correct would be of course if $ie.checkbox(:name,blah).checked? == true end On Apr 3, 4:00 pm, Darin Duphorn dduph...@redbrickhealth.com

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

2009-04-07 Thread Bret Pettichord
Jarmo Pertman wrote: Correct would be of course if $ie.checkbox(:name,blah).checked? == true end Even better: if $ie.checkbox(:name,blah).checked? end -- Bret Pettichord CTO, WatirCraft LLC, www.watircraft.com Lead Developer, Watir, www.watir.com Blog, www.io.com/~wazmo/blog

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

2009-04-06 Thread Chuck van der Linden
The Rdoc works as a more technical reference. but intially it can be a bit intimidating (kinda like trying to learn a new language from a dictionary). as you get a feel for things the rdoc becomes more and more useful. the Rdoc is a HTML documentation that is built dynamically and runs from a

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

2009-04-05 Thread satish
Thank you very much to all for quick responce. I used chceked? and it worked for my schenario. I am very new to Watir. Is there any pdf file I can read for biginners? or is there a site you can refer me too for kick starting my automation? Thanks a lot Satish. On Apr 3, 9:00 am, Darin Duphorn

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

2009-04-03 Thread Darin Duphorn
Sorry it was checked instead of set. If you want to validate it true or false remember to set it to string. if $ie.checkbox(:name,blah).checked?.to_s = 'true' end -Original Message- From: watir-general@googlegroups.com [mailto:watir-gene...@googlegroups.com] On Behalf Of Darin Duphorn

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

2009-04-02 Thread Wesley Chen
You may try ie.checkbox( ).isSet? Thanks. Wesley Chen. On Fri, Apr 3, 2009 at 1:03 AM, satish spanchumar...@gmail.com wrote: I have a checkbox, I have to perform check every time whether it is checked or not. Can some one help me with code. Thank you, Satish.

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

2009-04-02 Thread George
You can also use there: ie.checkbox.enabled? ie.checkbox.disabled? ie.checkbox.blank? As a beginner, I love the flexibility and forgiveness of writing code... On Apr 2, 5:53 pm, Wesley Chen cjq@gmail.com wrote: You may try ie.checkbox( ).isSet? Thanks. Wesley Chen. On Fri, Apr 3,