mediawiki-extensions-Math/tests/selenium/pageobjects/math.page.js
vidhi-mody cbd3fdbdcc Selenium: Update to WebdriverIO v5
Update NPM packages: webdriverio, wdio-mediawiki.
Update ESlint configuration.

Replace NPM packages:
- wdio-mocha-framework with @wdio/mocha-framework.
- wdio-spec-reporter with @wdio/spec-reporter.

New NPM packages: @wdio/cli, @wdio/local-runner, @wdio/sync.

Replace:
- `browser.element` with `$`.
- `chromeOptions` with `'goog:chromeOptions'`.
- `password` with `mwPwd`.
- `username` with `mwUser`.

Bug: T253791
Change-Id: Ief27154b2e10621b4dce51c634a075cd381021f8
2020-06-03 01:03:56 +05:30

10 lines
191 B
JavaScript

'use strict';
const Page = require( 'wdio-mediawiki/Page' );
class MathPage extends Page {
get img() { return $( '.mwe-math-fallback-image-inline' ); }
}
module.exports = new MathPage();