salesforce-pageobjects

6.0.2 • Public • Published

salesforce-pageobjects

Page objects provided by Salesforce to test Lightning Experience using the UI Test Automation Model (UTAM) framework.

This package is compatible with the Spring’24 Salesforce release.

This package is compatible with versions 2.0.2 up to 2.2.0 of the wdio-utam-service package. Mobile page objects are compatible with versions 2.0.2 up to 2.2.0.

Install

Using npm:

npm install salesforce-pageobjects --save-dev

or using yarn:

yarn add salesforce-pageobjects --dev

Usage

To import a page object in a test, use the following syntax. This example imports the login page object.

ES Modules (ESM)

import Login from 'salesforce-pageobjects/helpers/pageObjects/login';

CommonJS (CJS)

const Login = require('salesforce-pageobjects/helpers/pageObjects/login');

For a complete example, see the utam-js-recipes repo.

For more information about UTAM, see utam.dev.

For any issues, see Salesforce Help.

/salesforce-pageobjects/

    Package Sidebar

    Install

    npm i salesforce-pageobjects

    Weekly Downloads

    921

    Version

    6.0.2

    License

    SEE LICENSE IN LICENSE

    Unpacked Size

    8.71 MB

    Total Files

    3948

    Last publish

    Collaborators

    • jimevanssfdc
    • kperumal
    • lwc-admin
    • lizaiv77
    • olivier-martin-sf