Skip to content

assertFontWeight (UI Automation - Interrogation)

Compatible with:
  • Purpose
  • This command is useful for retrieving the css font-weight attribute value applied to that element and asserts the value.
  • If the value does not match with the attribute value which we get from the UI, it aborts the execution.
  • Syntax
  • assertFontWeight(locator, pattern)
  • Target
  • locator
  • Value
  • pattern
  • Return Value
  • Returns true or false
 

Feedback and Knowledge Base