title: How to verify that a word is Bold in selenium webdriver using Java?
body: <p>I have a web application.I have a scenario that a search term becomes bold in some pages so i need to verify whether the search term is Bold or not.
  I have tried the following code but i am not able to verify:</p>
  
  <pre><code>String colour = driver.findElement(By.className("classname")).getCssValue("color");
  if(colour.contains("rgba(46,46,46,1)"))
  System.out.println("Term is Bold");
  else
  System.out.println("Term is not  Bold");
  </code></pre>