How to use the @hetznercloud/protractor-test-helper.getElementAttributeValue function in @hetznercloud/protractor-test-helper

To help you get started, we’ve selected a few @hetznercloud/protractor-test-helper examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github hetznercloud / protractor-test-helper / test / flow / helpers.e2e-spec.ts View on Github external
it('getAttribute should wait for an element and should resolve to the requested attribute', () => {
        expect(
            getElementAttributeValue(
                helpersPage.getAttributeContainer,
                'data-value'
            )
        ).toBe('test-value');
    });
});
github hetznercloud / protractor-test-helper / test / async / waits.e2e-spec.ts View on Github external
it('waitForAttributeMatch should wait until an element has a attribute test which values matches /match/', async () => {
        const attr = 'test';
        await waitForAttributeMatch(waitsPage.waitForAttribute, attr, /match/);

        await expect(
            getElementAttributeValue(waitsPage.waitForAttribute, attr)
        ).toBe('match');
    });
github hetznercloud / protractor-test-helper / test / async / helpers.e2e-spec.ts View on Github external
it('getAttribute should wait for an element and should resolve to the requested attribute', async () => {
        await expect(
            getElementAttributeValue(
                helpersPage.getAttributeContainer,
                'data-value'
            )
        ).toBe('test-value');
    });
});

@hetznercloud/protractor-test-helper

[![npm version](https://badge.fury.io/js/%40hetznercloud%2Fprotractor-test-helper.svg)](https://www.npmjs.com/package/@hetznercloud/protractor-test-helper) [![Build Status](https://travis-ci.com/hetznercloud/protractor-test-helper.svg?branch=master)](http

MIT
Latest version published 3 years ago

Package Health Score

46 / 100
Full package analysis