0 votes
in Selenium by
How to retrieve CSS properties of an element?

1 Answer

0 votes
by

getCssValue() method is used to retrieve CSS properties of any web element

General Syntax:

  driver.findElement(By.id(“id“)).getCssValue(“name of css attribute”);

Example:

   driver.findElement(By.id(“email“)).getCssValue(“font-size”);

Related questions

+1 vote
asked Aug 22, 2019 in Selenium by john ganales
0 votes
asked Aug 19, 2019 in Selenium by rahulsharma
...