Puppetry
2.0.0
2.0.0
  • Welcome Puppetry
  • Getting Started
  • Project
  • Suite
  • Group
  • Target
  • Test Case
  • Test Step
    • Page Commands
    • Page Assertions
    • Target Commands
    • Target Assertions
  • Managing Assets
  • Snippets
  • Running tests
    • Troubleshooting
  • Exporting Tests for CI
  • Template Expressions
  • Version Control
  • Testing Transactional Emails
    • Example with Restmail.net
    • Example with Mailinator
    • Example with IMAP bridge
    • Example with Google API
  • Testing Forms with Captcha
  • Command API
  • Test Application
Powered by GitBook
On this page
  • target.assertAttribute
  • target.assertProperty
  • target.assertVisible
  • target.assertHtml
  • target.assertBoundingBox
  • target.assertPosition
  • target.assertStyle
  • target.assertMatchesSelector
  • target.assertNodeCount
  • target.assertTextCount
  • target.assertContainsClass
  • target.assertScroll

Was this helpful?

  1. Test Step

Target Assertions

PreviousTarget CommandsNextManaging Assets

Last updated 5 years ago

Was this helpful?

target.assertAttribute

Asserts that the specified of a target satisfies the given constraint

target.assertProperty

target.assertVisible

target.assertHtml

Asserts that the HTML content of the focused element satisfies the given constraint

target.assertBoundingBox

target.assertPosition

Asserts that target's position relative to other given target

target.assertStyle

target.assertMatchesSelector

Asserts that a target matches a given selector or pseudo-selector

target.assertNodeCount

Asserts that number of child elements matching a specified selector satisfies the given constraint.

target.assertTextCount

Asserts that number of child elements containing a specified text satisfies the given constraint.

target.assertContainsClass

target.assertScroll

Asserts that the specified of a target satisfies the given constraint

Asserts that the element is currently visible in the current viewport (, styles display is not none, visible is not hidden, opacity is not 0)

Asserts that the (size and position) of a target satisfies the given constraint

Asserts that the of a target matches the given value

Asserts that the specified class value exists in the .

Asserts that offset on the target satisfies the given constraint

property
intersecting
bounding box
computed style
element's class attribute
scroll
attribute