Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

If statement for a checkbox

 
Claudiu Barbulescu
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have a checkbox, that by default is not checked. Now, I write the below selenium rc script, but does not work as expected. When the script test the checkbox and this is not checked, I want to be checked in the else statement. Why this does not work?

Thank you!

 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Posts: 12043
224
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The way I'm reading your code is:

Perhaps you did not mean to have the "not" (!) in the first part of the if statement?
 
A teeny tiny vulgar attempt to get you to buy our stuff
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!