Open GoogleCodeExporter opened 9 years ago
zhuxuyong@
thanks for filing bug, have verified locally in the same environment as
mentioned above by you, and could not reproduce the issue.
can you please attach sample testcase here.
thanks
-------- java -------
WebDriver driver = new ChromeDriver();
driver.get("file:///usr/local/xxx/Documents/SampleHTML/bug1146.html");
WebElement ele = driver.findElement(By.className("customcheckbox"));
WebElement ele2= driver.findElement(By.id("check"));
if (ele.isDisplayed()) {
System.out.println("Element is Visible: identified by class");
} else {
System.out.println("Element is Absent when identified by class");
}
if (ele2.isDisplayed()) {
System.out.println("Element is Visible: identified by id");
} else {
System.out.println("Element is Absent when identified by id");
}
if (ele.isEnabled()) {
System.out.println("Element is enabled: identified by class");
} else {
System.out.println("Element is Not enabled");
}
ele2.click();
if (ele2.isSelected()) {
System.out.println("Element is selected: identified by id");
} else {
System.out.println("Element is Not selected");
}
Original comment by agau...@chromium.org
on 10 Jul 2015 at 6:46
Original comment by agau...@chromium.org
on 10 Jul 2015 at 6:47
Original issue reported on code.google.com by
zhuxuy...@huawei.com
on 10 Jul 2015 at 3:12