We are trying to check the checkbox on pop up window through
webdriver :
E.g
//User click on Some Add machine button
driver.findElement(By.cssSelector("#addmachine >
span")).click();
// Pop up window appears : we use alert() to focus on pop up
window
driver.switchTo().alert();
// Clicking the checkbox via xpath
driver.findElement(By.xpath(".//*[@id='machineAddForm']/
table/tbody/tr[2]/td[1]/input")).click();
// Then clicking on Save button on pop up window
driver.findElement(By.cssSelector("#addmachine_save >
span")).click();
But we the value store for checkbox is not correct, while executing
script the checkbox not get checked.
Please help us to resolve this issue.
Thanks
~Gurdarshan Singh