font color using selenium java -


webdriver driver = new firefoxdriver(); driver.manage().window().maximize(); driver.get("https://news.google.co.in/nwshp?hl=en&tab=wn&ei=zjbuve3mgyukuqtrlidaaq&ved=0cauqqs4obq"); driver.manage().timeouts().implicitlywait(30,timeunit.seconds);   driver.findelement(by.id("gbqfq")).sendkeys("veenita"); system.out.println("font size "+ driver.findelement(by.id("gbqfq")).getcssvalue("font-size")); system.out.println("font color "+driver.findelement(by.id("gbqfq")).getcssvalue("font-color")); system.out.println("font background color "+driver.findelement(by.id("gbqfq")).getcssvalue("background-color")); system.out.println("font type "+driver.findelement(by.id("gbqfq")).getcssvalue("font-type")); 

o/p is:

font size 16px font color  font background color transparent font type  

why font color , font type not getting retrieved code?

use color , font-family instead of font-color , font-type.


Comments