Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Code 3

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

//

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

You might also like