3

For example, I have to check Category text font color and font size showing below code; how to identify the CSS value using Selenium IDE tool?

<div class="featured">
  <div class="container">
     <div class="col-md-8 latest">
          <h4>Category</h4>
     </div>
    </div> 
</div>
3

You can try execute script function. See my example below:

enter image description here

Here is test output:

enter image description here

Inside getComputedStype you need to use JS way to look up the element you need and then invoke getPropertyValue with the value you would like to assert. Being saved to a variable (in my case it is ${WDTH}) you will be able to test your property for a specific value.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.