• 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
Pie
Posts: 11866
194
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic