page-objects/google-search.js
function (searchQuery) {

        var selector = page.googleSearch.elements.searchInput;

        // return a promise so the calling function knows the task has completed
        return driver.findElement(selector).sendKeys(searchQuery, selenium.Key.ENTER);
    }
function (searchQuery) {

        var selector = page.googleSearch.elements.searchInput;

        // return a promise so the calling function knows the task has completed
        return driver.findElement(selector).sendKeys(searchQuery, selenium.Key.ENTER);
    }
function ( searchQuery ) { var selector = page . googleSearch . elements . searchInput ; // return a promise so the calling function knows the task has completed return driver . findElement ( selector ) . sendKeys ( searchQuery , selenium . Key . ENTER ) ; }
enters a search term into Google's search box and presses enter
@param {string} searchQuery
@returns {Promise} a promise to enter the search values
enters a search term into Google s search box and presses enter