Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including glace-web with all npm packages installed. Try it out:

var glaceWeb = require("glace-web")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

glace-web v1.4.0

GlaceJS Web plugin

Build Status | Source Code | Release Notes

GlaceJS Web plugin

Provides steps for GlaceJS framework to launch web UI tests in browser.

Features

  • Launch standalone selenium server
  • Connect to existing selenium or appium server
  • Page Object Model with weak refs
  • Browser Pointer Events

Requirements:

  • Installed java in order to launch selenium server.

How to install

npm i glace-web

How to use

var glaceWeb = require("glace-web");
glaceWeb.Steps;
glaceWeb.config;

If plugin is used as a part of GlaceJS it will be loaded automatically.

CLI options

Selenium

  • --dont-install-drivers - Flag to not install selenium drivers on tests run.
  • --web - Flag to launch tests in browser. Browser will be launched on session start and closed on session finish.
  • --web-url - Application URL which will be used for web tests.
  • --web-resolution <widthxheight> - Browser viewport size (pc platform only).
  • --selenium-addr - Connect to launched selenium server with this address.
  • --platform - Specify platform type where tests will be executed. Default is pc. Supported values are pc, android, ios.
  • --browser - Name of browser where web tests will be executed. Default value is platform specific.

Appium

  • --device - Mobile device name.
  • --os-version - Mobile operating system version.
  • --ios-engine - iOS automation engine name.

API

Test examples

See integration tests in order to explore examples.

Tests and quality

  • Project tests report is here
  • Code coverage report is here
RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free