Skip to content

assertPosition (UI Automation - Interrogation)

Compatible with:
  • Purpose
  • Generated from getPosition(locator) 
  • This command is used to verify if the retrieved css position attribute value applied to that element matches the pattern given in Value.
  • Syntax
  • assertPosition(locator, pattern)
  • Target
  • locator - an element locator pointing to an element OR an element itself
  • Value
  • pattern - In Pixels
  • Return Value
  • Returns the position.
 

Feedback and Knowledge Base