testcafe-browser-tools
An utility library for performing platform-dependent actions on browsers.
Last updated a month ago by belym.a.2105 .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install testcafe-browser-tools 
SYNC missed versions from official npm registry.

testcafe-browser-tools

Build Status

TestСafe Browser Tools is an utility library for performing platform-dependent actions on browser windows. Working with browsers is specific for each operating system and requires native code to deal with. In order to provide painless and simple installation, this package encapsulates pre-built binaries for all supported platforms and JS-wrappers around them. This helps end-users avoid running post-npm-install build actions.

Build Process

To build native binaries from source files, execute the gulp task corresponding to your operating system:

'buildWin'
'buildMac'
'buildLinux'

Note that the application for a particular platform must be built on a machine with the same platform.

The bin directory contains pre-built native binaries. Consider using them if your contribution does not affect the native modules.

Install

$ npm install testcafe-browser-tools

API Reference

Important note: To identify the web browser window, most of the provided functions use its title. This title matches the web page's document.title in most of the browsers. However, Microsoft Edge truncates the window title to the hostname if document.title contains only a URL ( e.g. document.title = 'http://localhost:1337/page' gives localhost in the window title).

So, you need to add some characters before the URL in order to bring it to the window title:

document.title = 'title: ' + document.location.toString()

For API reference, see the API document.

Testing

To run automated tests:

$ npm test

Since the module functionality depends on browsers available on a testing machine and you cannot predict expected returned values for some functions, the automated tests cover only a part of the functionality. To test all the functions provided by the module, use the playground. To run it, execute the gulp task corresponding to your operating system:

$ gulp runPlaygroundWin
$ gulp runPlaygroundMac
$ gulp runPlaygroundLinux

This will open the Playground web page at http://localhost:1334/, where you can manually check if the functions work correctly.

Author

Developer Express Inc.(http://devexpress.com)

Current Tags

  • 2.0.8-alpha.2                                ...           alpha (6 months ago)
  • 1.4.5-git201709151123                                ...           git (3 years ago)
  • 2.0.12                                ...           latest (a month ago)

74 Versions

  • 2.0.12                                ...           a month ago
  • 2.0.11                                ...           2 months ago
  • 2.0.10                                ...           4 months ago
  • 2.0.9                                ...           4 months ago
  • 2.0.8                                ...           5 months ago
  • 2.0.8-alpha.2                                ...           6 months ago
  • 2.0.8-alpha.1                                ...           6 months ago
  • 2.0.7                                ...           7 months ago
  • 2.0.6                                ...           7 months ago
  • 2.0.5                                ...           8 months ago
  • 2.0.4                                ...           8 months ago
  • 2.0.3                                ...           8 months ago
  • 2.0.2                                ...           8 months ago
  • 2.0.1                                ...           8 months ago
  • 2.0.0                                ...           8 months ago
  • 2.0.0-alpha.1                                ...           8 months ago
  • 1.7.1                                ...           8 months ago
  • 1.7.0                                ...           9 months ago
  • 1.6.8                                ...           a year ago
  • 1.6.7                                ...           a year ago
  • 1.6.6                                ...           a year ago
  • 1.6.5                                ...           2 years ago
  • 1.6.4                                ...           2 years ago
  • 1.6.3                                ...           2 years ago
  • 1.6.2                                ...           2 years ago
  • 1.6.1                                ...           2 years ago
  • 1.6.0                                ...           2 years ago
  • 1.5.1                                ...           2 years ago
  • 1.5.0                                ...           2 years ago
  • 1.4.7                                ...           3 years ago
  • 1.4.6                                ...           3 years ago
  • 1.4.5-git201709151123                                ...           3 years ago
  • 1.4.5-git201709141633                                ...           3 years ago
  • 1.4.5-git201709131433                                ...           3 years ago
  • 1.4.5                                ...           3 years ago
  • 1.4.4                                ...           3 years ago
  • 1.4.3                                ...           3 years ago
  • 1.4.2                                ...           3 years ago
  • 1.4.1-git.201708251100                                ...           3 years ago
  • 1.4.1-git.201708241000                                ...           3 years ago
  • 1.4.1-git.201708240830                                ...           3 years ago
  • 1.4.1-git.201708231130                                ...           3 years ago
  • 1.4.1-git.201708230930                                ...           3 years ago
  • 1.4.1-git.201708230700                                ...           3 years ago
  • 1.4.1-git.201708230630                                ...           3 years ago
  • 1.4.1-git.201708221400                                ...           3 years ago
  • 1.4.1-git.201708221245                                ...           3 years ago
  • 1.4.1-git.201708221230                                ...           3 years ago
  • 1.4.1-git.201708221215                                ...           3 years ago
  • 1.4.1-git.201708221145                                ...           3 years ago
  • 1.4.1-git.201708221000                                ...           3 years ago
  • 1.4.1-git.201708211545                                ...           3 years ago
  • 1.4.1-git.201708181521                                ...           3 years ago
  • 1.4.1-git.201708181307                                ...           3 years ago
  • 1.4.1-git.201708181243                                ...           3 years ago
  • 1.4.1-git.201708181130                                ...           3 years ago
  • 1.4.1                                ...           3 years ago
  • 1.4.0                                ...           3 years ago
  • 1.3.1                                ...           3 years ago
  • 1.3.0                                ...           3 years ago
  • 1.2.4                                ...           3 years ago
  • 1.2.3                                ...           3 years ago
  • 1.2.2                                ...           3 years ago
  • 1.2.1                                ...           3 years ago
  • 1.2.0                                ...           3 years ago
  • 1.1.7                                ...           4 years ago
  • 1.1.6                                ...           4 years ago
  • 1.1.5                                ...           4 years ago
  • 1.1.4                                ...           4 years ago
  • 1.1.3                                ...           4 years ago
  • 1.1.2                                ...           4 years ago
  • 1.1.1                                ...           4 years ago
  • 1.1.0                                ...           4 years ago
  • 1.0.0                                ...           4 years ago

Copyright 2014 - 2016 © taobao.org |