Predict the output

You have two check boxes in a list on a webpage with Ids cb1 and cb2, respectively.

What would be the output of the following code?

WebElement box1 = driver.findElement(By.id("cb1")):
WebElement box2 = driver.findElement(By.id("cb2"));
box1.click();
box2.click();
System.out.println(box1.isSelected());
System.out.println(box2.isSelected());
Options

1.true

false

2.false

true

3.true

true

4.false

false

5.Syntax erro

Related Posts