JSPM

webtaxi

0.0.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q22560F
  • License UNLICENSED

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

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

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