Code 3
Code 3
Code 3
System.out.println(driver.findElement(By.name("ctl00$mainContent$view_date2")).isEn
abled());
System.out.println(driver.findElement(By.id("Div1")).getAttribute("style"));
driver.findElement(By.id("ctl00_mainContent_rbtnl_Trip_1")).click();
System.out.println(driver.findElement(By.id("Div1")).getAttribute("style"));
if(driver.findElement(By.id("Div1")).getAttribute("style").contains("1"))
System.out.println("its enabled");
Assert.assertTrue(true);
else
Assert.assertTrue(false);
Fullscreen
Go to Previous lecture59. Validating if UI Elements are disabled or enab�
Go