diff --git a/packages/universal-xml-plugin/lib/plugin.js b/packages/universal-xml-plugin/lib/plugin.js index cce4f0bdb..a486f57bd 100644 --- a/packages/universal-xml-plugin/lib/plugin.js +++ b/packages/universal-xml-plugin/lib/plugin.js @@ -1,20 +1,12 @@ /* eslint-disable no-case-declarations */ -import BasePlugin from 'appium/plugin'; +import {BasePlugin} from 'appium/plugin'; import {errors} from 'appium/driver'; import {transformSourceXml} from './source'; import {transformQuery} from './xpath'; import log from './logger'; export default class UniversalXMLPlugin extends BasePlugin { - commands = [ - 'getPageSource', - 'findElement', - 'findElements', - 'findElementFromElement', - 'findElementsFromElement', - ]; - async getPageSource(next, driver, sessId, addIndexPath = false) { const source = next ? await next() : await driver.getPageSource(); const metadata = {}; diff --git a/packages/universal-xml-plugin/tsconfig.json b/packages/universal-xml-plugin/tsconfig.json index 030219075..c125d8d68 100644 --- a/packages/universal-xml-plugin/tsconfig.json +++ b/packages/universal-xml-plugin/tsconfig.json @@ -1,6 +1,7 @@ { "compilerOptions": { - "outDir": "build" + "outDir": "build", + "checkJs": true }, "extends": "@appium/tsconfig/tsconfig.plugin.json", "include": ["lib"]