function checkLongWordsLayout(args) {
    _assertMandatoryArgs(args, [
        "driver", "spec"
    ]);

    var groupName = args.groupName || $galen.settings.longWordsTesting.groupName;
    var replaceText = args.replaceText || $galen.settings.longWordsTesting.replaceText;
    var escapedReplaceText = StringEscapeUtils.escapeEcmaScript(replaceText);

    var pageSpec = parsePageSpec(args);

    logged("Replace text in major elements to a single long word", function (report) {
        var longWordsObjects = pageSpec.findObjectsInGroup(groupName);
        for (var i = 0; i < longWordsObjects.size(); i++) {
            report.info("Changing element " + longWordsObjects.get(i));

            var locator = pageSpec.getObjects().get(longWordsObjects.get(i));
            if (locator !== null) {
                var webElement = GalenUtils.findWebElement(args.driver, locator);
                args.driver.executeScript("var element = arguments[0]; element.innerHTML=\"" + escapedReplaceText + "\";", webElement);
            }
        }
    });

    checkLayout(args);
}
/**
 * Used for testing layout when long words are used on major elements
 * This will only work in galen 2.2+
 */
Used for testing layout when long words are used on major elements
This will only work in galen 2.2+
Used for testing layout when long words are used on major elements This will only work in galen 2 . 2 +
function checkLongWordsLayout(args) {
    _assertMandatoryArgs(args, [
        "driver", "spec"
    ]);
    var groupName = args.groupName || $galen.settings.longWordsTesting.groupName;
    var replaceText = args.replaceText || $galen.settings.longWordsTesting.replaceText;
    var escapedReplaceText = StringEscapeUtils.escapeEcmaScript(replaceText);
    var pageSpec = parsePageSpec(args);
    logged("Replace text in major elements to a single long word", function (report) {
        var longWordsObjects = pageSpec.findObjectsInGroup(groupName);
        for (var i = 0; i < longWordsObjects.size(); i++) {
            report.info("Changing element " + longWordsObjects.get(i));
            var locator = pageSpec.getObjects().get(longWordsObjects.get(i));
            if (locator !== null) {
                var webElement = GalenUtils.findWebElement(args.driver, locator);
                args.driver.executeScript("var element = arguments[0]; element.innerHTML=\"" + escapedReplaceText + "\";", webElement);
            }
        }
    });
    checkLayout(args);
}
function checkLongWordsLayout ( args ) { _assertMandatoryArgs ( args , [ "driver" , "spec" ] ) ; var groupName = args . groupName || $galen . settings . longWordsTesting . groupName ; var replaceText = args . replaceText || $galen . settings . longWordsTesting . replaceText ; var escapedReplaceText = StringEscapeUtils . escapeEcmaScript ( replaceText ) ; var pageSpec = parsePageSpec ( args ) ; logged ( "Replace text in major elements to a single long word" , function ( report ) { var longWordsObjects = pageSpec . findObjectsInGroup ( groupName ) ; for ( var i = 0 ; i < longWordsObjects . size ( ) ; i ++ ) { report . info ( "Changing element " + longWordsObjects . get ( i ) ) ; var locator = pageSpec . getObjects ( ) . get ( longWordsObjects . get ( i ) ) ; if ( locator !== null ) { var webElement = GalenUtils . findWebElement ( args . driver , locator ) ; args . driver . executeScript ( "var element = arguments[0]; element.innerHTML=\"" + escapedReplaceText + "\";" , webElement ) ; } } } ) ; checkLayout ( args ) ; }
Used for testing layout when long words are used on major elements
 This will only work in galen 2.2+
Used for testing layout when long words are used on major elements This will only work in galen 2 . 2 +