1.0.3 • Published 3 years ago

wdio-enverus-core-ui v1.0.3

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

WDIO Enverus Core UI methods

About

The motivation with this module is to provide a high-level abstraction for testing UI.

Getting Started

Install WDIO Enverus Core UI as an npm module and save it to your package.json file as a development dependency:

npm install wdio-enverus-core-ui --save-dev

Once installed it can now be referenced by simply calling import EnverusCoreUI from 'wdio-enverus-core-ui';

Available methods:

  • navigate - Open url
  • isElmVisible - Check if element visible
  • isElmClickable - Check if element Clickable
  • isElementVisible - Check if element visible
  • isElmExist - Check if element exist
  • isElementExist - Check if element exist
  • switchToWindow - Switches focus to a new window
  • closeCurrentWindowAndLoadParent - Close the current window and switch to its parent window

Method Summary

MethodsMethods typeParameters
navigatepublicurl: string
isElmVisiblepublicelement: WebElement, message: string, timeout: Number, CHECK_SPINNER: boolean
isElmClickablepublicelement: WebElement, message: string, timeout: Number, CHECK_SPINNER: boolean
isElementVisiblepublicelement: WebElement, timeout: Number, CHECK_SPINNER: boolean, INTERVAL: Number
isElmExistpublicelement: WebElement, message: string, timeout: Number
isElementExistpublicelement: string, timeout: Number, CHECK_SPINNER: boolean, INTERVAL: Number
switchToWindowpublicwindowHandleIndex: Number, timeout: Number
closeCurrentWindowAndLoadParentpublic

How to use:

  1. Create CoreUI class
import Spinner from './spinner';
import EnverusCoreUI from 'wdio-enverus-core-ui';

export default class CoreUI extends EnverusCoreUI {
    /**
     * Check spinner
     * @returns {Promise.<any>}
     */
    spinner () {
        Spinner.waitToDisappear();
    }
}
1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago