webtaxi
v0.0.2
Published
Wrapper for WebdriverIO to handle IOS/Android/Chrome all the same way
Downloads
3
Maintainers
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