[wtr-general] Re: set or clear Check box with a variable

2011-05-11 Thread Ivan Kabluchkov
emckb = ie.checkbox(:id, 'enableSmtpEmail') x = :set y = :clear emckb.send(x) # Will be set emckb.send(y) # Will be clear -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com

[wtr-general] Re: set or clear Check box with a variable

2011-05-11 Thread Darryl Brown
Željko and Ivan Both of your solutions work. The one that Željko suggested works the best for my particular situation as I can use my spreadsheet calls directly - that's what I was trying to accomplish. I get set or clear from a spreadsheet. So, this is working for me now: emckb.send

[wtr-general] Re: set or clear Check box with a variable

2011-05-11 Thread Richard Wijdenes
Darryl I use this solution: $br.checkbox(:id, includeSponsor).set if study[includeSponsor] == true R. -- 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