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.type
  • target.select
  • target.focus
  • target.click
  • target.reset
  • target.upload
  • target.tap
  • target.scroll
  • target.hover
  • target.checkBox
  • target.toggleClass
  • target.setAttribute
  • target.screenshot

Was this helpful?

  1. Test Step

Target Commands

PreviousPage AssertionsNextTarget Assertions

Last updated 5 years ago

Was this helpful?

target.type

Focuses the element, and then sends keyboard events for each character in the text

target.select

Sets value on select element

target.focus

Focuses the element

target.click

Emulates mouse click on the element

target.reset

Resets the input or form element

target.upload

Sets the value of a file input. Note that the target element must be INPUT of FILE type. It is also recommended to emulate click on the target (or clickable element calling the file browser) before going with this command

target.tap

Taps the element

target.scroll

Sets the number of pixels that an element's content is scrolled horizontally/vertically.

target.hover

Scrolls element into view if needed, and then hovers over the center of the element

target.checkBox

Toggles checkbox/radio state

target.toggleClass

Toggles the specified class value (adds or removes)

target.setAttribute

target.screenshot

Takes a screenshot of the target element.

Sets the value of an on a target

attribute