Automation Using Selenium Webdriver
Selenium Programs
Selenium Programs
Manual Testing
FAQ
Java Examples
SQL FAQ
Showing posts with label
Read background color of an element
.
Show all posts
Showing posts with label
Read background color of an element
.
Show all posts
Saturday, 22 October 2016
Read background color of an element
Code For Backgroud color of an element
driver.get("http://www.google.co.in/"); String color = driver.findElement(By.name("btnK")).getCssValue("background-color"); System.out.println("The background color of Google search button"+color);
Older Posts
Home
Subscribe to:
Posts (Atom)