SELENIUM REAL TIME INTERVIEW QUESTIONS - How can we get the font size, font color, font type used for a particular text on a web page using Selenium web driver?
Selenium WebDriver Interview question and Answers
(Continued from previous question...)
SELENIUM REAL TIME INTERVIEW QUESTIONS - How can we get the font size, font color,
font type used for a particular text on a web
page using Selenium web driver?
driver.findelement(By.Xpath("Xpath ").getcssvalue("font-size);
driver.findelement(By.Xpath("Xpath ").getcssvalue("font-colour);
driver.findelement(By.Xpath("Xpath ").getcssvalue("font-type);
driver.findelement(By.Xpath("Xpath ").getcssvalue("background-colour);
(Continued on next question...)
Other Interview Questions
|