webtaxi

0.0.2 • Public • Published

🚖 webtaxi 🚖

Wrapper for WebdriverIO to handle IOS/Android/Chrome all the same way

npm version dependencies Build Status lifetimeDownloadCount Pledge To Arupex!

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

Package Sidebar

Install

npm i webtaxi

Weekly Downloads

1

Version

0.0.2

License

UNLICENSED

Last publish

Collaborators

  • dirwin517