Skip to content
This repository has been archived by the owner on Sep 21, 2022. It is now read-only.

0.2.0

Compare
Choose a tag to compare
@SevInf SevInf released this 22 Apr 08:14
· 1563 commits to master since this release
  • New test suites API. Plans are replaced by test suites defined by explicit call.

    Old version:

    module.exports = function(plan) {
        plan.setName('some name')
            .setElements(...)
            .setDynamicElements(...)
            .capture(...)
    
    };

    New API:

    var gemini = require('gemini');
    
    gemini.suite('some name', function(suite) {
        suite.setElements(...)
            .setDynamicElements(...)
            .capture(...)
    
    };

    Suites also can be nested. In this case, child suite inherits all properties
    from the parent.

    gemin.suite('parent', function(suite) {
        gemini.suite('child', function(child) {
            gemini.suite('grandchild', function(grandchild) {
    
            });
        });
    });
  • .reload() method is removed. Use nested suite if you need to reload browser.

  • Added action to run any JS code in browser context:

    actions.executeJS(function(window) {
        window.alert('Hello!');
    });
  • sendKeys action can optionally take an receive an element to send keys to.

    actions.sendKeys(elements.someInput, 'hello');
  • Added ability to specify browser version in .gemini.yml

    browsers:
      - {name: 'pahantomjs', version: '1.9'}
  • Tree reporter is now used for gather command.