--- title: user — user interactions description: The user API simulates realistic user interactions in a Run UI Test Script step. Each interaction fires the same events a real browser user produces, such as focus, input, change, blur, and keyboard events, so that client scripts and reactive frameworks respond correctly. locale: en-US canonical_url: https://www.servicenow.com/docs/r/australia/api-reference/developer-guides/r\_run\_ui\_test\_script\_user.html release: australia product: Developer Guides classification: developer-guides topic_type: reference last_updated: "2026-06-25" reading_time_minutes: 1 keywords: [user, user interactions, click, type, keyboard, Run UI Test Script] breadcrumb: [Run UI Test Script Developer Guide, Developer guides, API implementation and reference] --- # user — user interactions The user API simulates realistic user interactions in a Run UI Test Script step. Each interaction fires the same events a real browser user produces, such as focus, input, change, blur, and keyboard events, so that client scripts and reactive frameworks respond correctly. ## user methods |Method|Description| |------|-----------| |user.click\(el\)|Single click.| |user.dblClick\(el\)|Double click.| |user.tripleClick\(el\)|Triple click, which selects all text in an input.| |user.hover\(el\)|Move the pointer over the element.| |user.unhover\(el\)|Move the pointer away from the element.| |user.type\(el, text\)|Type text character by character, firing key events.| |user.keyboard\(seq\)|Send a key sequence, for example `'{Enter}'`, `'{Tab}'`, or `'{Control>}a{/Control}'`.| |user.tab\(opts?\)|Press Tab, or Shift+Tab with `{ shift: true }`.| |user.clear\(el\)|Select all and delete the current value.| |user.selectOptions\(el, values\)|Select one or more `