Testing Is My Passion
Pages
Selenium Webdriver
Tuesday, 26 November 2013
How can I read background-color of an element in selenium Webdriver?
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);
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment