Skip to content

arupex/webtaxi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚖 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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published