Testim Documentation

Welcome to the Testim documentation. You'll find comprehensive guides to help you get started quickly, example code snippets, and tips for being more productive. You will also find details about advanced features that allow you to customize Testim to fit your environment or special testing conditions. Don't worry, we'll support you if you get stuck. Let's jump right in!

Guides    Changelog

submit(selector)

This method submits the given form element.

  • selector {string | TDKStepLocator} a CSS selector or smart locator for the element
  • returns: Promise that fulfills when the action is complete or throws if the form is not found or the passed element is not a form.

// ✅ submit the given `form`
await submit('form');
// ✅ submit the given form by smart locator
await submit(l('.login-form'));

// ❌ need to pass the form
await submit();
// ❌ does not take options
await submit({ x: 15, y: 20});

Updated 26 days ago

submit(selector)


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.