Skip to content

assertWidth (UI Automation - Interrogation)

Compatible with:
  • Purpose
  • Generated from getWidth(locator)
  • Retrieves the CSS width attribute value applied to that element.
  • Syntax
  • assertWidth(locator, pattern)
  • Target
  • locator - An element locator pointing to an element OR an element itself
  • Value
  • Pattern -The width to be verified.
  • Return Value
  • The width in pixels.
 

Feedback and Knowledge Base