npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

kunlun

v0.2.12

Published

An Appium JS mobile app automation framework

Downloads

7

Readme

Kunlun

NPM version Downloads

Kunlun is a Appium client library that provides:

  • User friendly and more helpful methods in addition to WD
  • Appium logging control through environment variable DEBUG
  • Sauce Labs integration
  • Bootstrap your Appium page object test structure

Table of contents


Quick example:

  • Instead of
- find an element by some selector
- write your own logic to wait for it to be available
- click on it

you can just call clickEl() with Kunlun.

Default selector type is accessibility id, you can overwrite it with xpath, -ios uiautomation, etc

  • Print out Appium client side logging while running the test, just append DEBUG=true in command line

This package is still under construction, more are coming.


API

  • waitTillAvailable(selector, by)

Wait until specific element is displayed

  • waitTillNotAvailable(selector, by)

Wait until specific element is NOT displayed

  • typeSpecialKey(key)

Send special key as defined in https://github.com/admc/wd/blob/master/lib/special-keys.js e.g.: driver.typeSpecialKey('Return');

  • clickEl(selector, by)

Click on selected element after waiting for it to be displayed

  • typeEl(value, selector, by)

Type text value in selected element after waiting for it to be displayed

  • getEls(selector, by)

Search for multiple elements after waiting for any of them to be displayed

  • getEl(selector, by)

Search for element after waiting for any of them to be displayed

  • hasEl(selector, by)

Check if an element exists

  • getElAttribute(attr, selector, by)

Get the value of an element's attribute after waiting for it to be displayed

  • bindModule(module)

Bind functions from customized page object modules to AppiumDriver object

  • resetModules()

Clean up customized page object modules functions

  • goBack()

Click on built-in Back button

  • cancelLastMove()

Click on built-in Cancel button

  • Plus, all the APIs as listed in WD


Command line tool

Kunlun comes with a kunlun command line interface that helps you to create a basic page object Appium test framework.

$ npm install kunlun
$ ./node_modules/.bin/kunlun init

Follow the instructions and it will create a scaffold of basic test framework for you.


License

Licensed under the MIT