1.0.0-alpha.5 • Published 5 years ago

marionettejs v1.0.0-alpha.5

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

MarionetteJS

Node.js bindings for Marionette, a high-level API to control a WKWebView.

Installation

npm install --save marionettejs

Usage

const Page = require('marionettejs')

const page = new Page()

// Go to google
await page.goto('https://www.google.com/')

// Type in "LinusU Marionette"
await page.type(`input[name='q']`, 'LinusU Marionette')

// Click the search button, and wait for navigation
await Promise.all([page.waitForNavigation(), page.click(`input[type='submit']`)])