Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cyancat

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cyancat

A synchronized version of Appium Javascript binding

  • 0.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
9
increased by50%
Maintainers
1
Weekly downloads
 
Created
Source

Cyancat

NPM version Build Status Dependency Status Downloads

Mobile JSON Wire Javascript binding, best for Appium native app test automation.

Cyancat let you write Appium mobile automation test in a synchronized way in Javascript:

  it('sample test for sign in', function(done) {
    driver.run(function() {
      driver.init({
        "platformName": "iOS",
        "platformVersion": "9.3",
        "deviceName": "iPhone 6",
        "app": "./app/example.app"
      });
      // add memo
      driver.clickEl('Add');
      driver.typeEl('memo test summary 1', 'itemTitle');
      driver.clickEl('Done');

      // delete memo
      driver.clickEl('//UIATableCell[@name = "memo test summary 1"]', 'xpath');
      driver.clickEl('Delete');

      done();
    });
  • Built-in element visibility check before any operation, no driver.sleep(1000) anymore
  • Easily config selenium protocol timeout
  • You just don't like method chaining style and would like to insert more complex stuff between actions
  • Convenience and well documented methods that are more human friendly than WD.js
  • The cyancat command line interface comes with a nice configuration utility that helps you to create your test framework in less than a minute.

Table of contents


Installation

$ npm install cyancat

API

stay tuned, more to come...

setWaitTimeout(timeout)
init(capabilities)
elements(locator, using)
element(locator, using)
elementClick(elementId)
clickEl(locator, using, timeout)
elementType(value, elementId)
typeEl(value, locator, using, timeout)
elementAttribute(elementId, attributeName)
source()
quit()
waitForElement(locator, using, timeout)
sleep(ms)

Example

A full test framework example including the app is available in the examples folder

Why the name

Because Cyancat uses Bluecat underlayer, and I expect tests written in Cyancat stay green...

License

Licensed under the MIT

Keywords

FAQs

Package last updated on 05 Mar 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc