e2ed
Version:
E2E testing framework over Playwright
17 lines (16 loc) • 829 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.locatorAttributes = exports.createLocatorOptions = exports.locator = void 0;
const create_locator_1 = require("create-locator");
const internal_1 = require("../../../constants/internal");
const client_1 = require("../client");
const isProduction = internal_1.e2edEnvironment.E2ED_ORIGIN !== 'https://bing.com';
const createLocatorOptions = { attributesOptions: internal_1.attributesOptions, isProduction };
exports.createLocatorOptions = createLocatorOptions;
exports.locator = (0, create_locator_1.createSimpleLocator)(createLocatorOptions).locator;
/**
* `locator` function.
* @internal
*/
const locatorAttributes = (...args) => (0, client_1.renderAttributes)((0, exports.locator)(...args));
exports.locatorAttributes = locatorAttributes;