Package Exports
- webtaxi
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (webtaxi) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
π webtaxi π
Wrapper for WebdriverIO to handle IOS/Android/Chrome all the same way
This is a WIP, and should be used with caution!
#Hows it work? WebTaxi finds elements based on element type / text / attributes This internally finds the element in the XML and generates the appropriate Xpath (so it works on all platforms) The Xpath is completely handled internally! and exposes nice getters/setters for text/value/click as well as raw source object based on xml turned into json via xml-js
#Install
npm install webtaxi --save#Usage
import { WebTaxi } from 'webtaxi'
let browser = new WebTaxi();
let testButton = browser.find({
tag : 'button',
text : 'test'
});
console.log('testButton Text', testButton.text);
testButton.click();#WebTaxi
constructor(optionalBrowser)
findMultiple(WebTaxiLocator || Object)
find(WebTaxiLocator || Object)#WebTaxiLocator locationData = { tag : βbuttonβ, text : βWelcomeβ, attributes : { color : βred' } }
constructor(locationData)
tag : str
text : ( str / regexp )
attributes : object
option(keyValue)
query : object
#WebTaxiElement
text : string
value : string
click : void
source : json representation of xml