helpers.js
function (opts) {
            var that = this;

            return function () {
                return this.then(function () {
                    this.click('.js-cms-pagetree-options[data-node-id="' + opts.page + '"]');
                })
                .then(that.waitUntilActionsDropdownLoaded())
                .then(function () {
                    this.mouse.click('.js-cms-tree-item-copy[data-node-id="' + opts.page + '"]');
                })
                .wait(100);
            };
        }
function (opts) {
            var that = this;

            return function () {
                return this.then(function () {
                    this.click('.js-cms-pagetree-options[data-node-id="' + opts.page + '"]');
                })
                .then(that.waitUntilActionsDropdownLoaded())
                .then(function () {
                    this.mouse.click('.js-cms-tree-item-copy[data-node-id="' + opts.page + '"]');
                })
                .wait(100);
            };
        }
function ( opts ) { var that = this ; return function ( ) { return this . then ( function ( ) { this . click ( '.js-cms-pagetree-options[data-node-id="' + opts . page + '"]' ) ; } ) . then ( that . waitUntilActionsDropdownLoaded ( ) ) . then ( function ( ) { this . mouse . click ( '.js-cms-tree-item-copy[data-node-id="' + opts . page + '"]' ) ; } ) . wait ( 100 ) ; } ; }
Opens dropdown and triggers copying a page

@public
@param {Object} opts
@param {Number|String} opts.page page id
@returns {Function}
Opens dropdown and triggers copying a page