/**
 *
 * Get the text content from a DOM-element found by given selector.
 *
 * <example>
    :index.html
    <div id="elem">
        Lorem ipsum <strong>dolor</strong> sit amet,<br>
        consetetur sadipscing elitr
    </div>

    :getText.js
    client.getText('#elem').then(function(text) {
        console.log(text);
        // outputs the following:
        // "Lorem ipsum dolor sit amet,consetetur sadipscing elitr"
    });
 * </example>
 *
 * @param   {String}           selector   element with requested text
 * @returns {String|String[]}             content of selected element (all HTML tags are removed)
 *
 * @uses protocol/elements, protocol/elementIdText
 * @type property
 *
 */

var ErrorHandler = require('../utils/ErrorHandler.js');

module.exports = function getText (selector) {

    return this.elements(selector).then(function(res) {

        if(!res.value || res.value.length === 0) {
            // throw NoSuchElement error if no element was found
            throw new ErrorHandler(7);
        }

        var self = this,
            elementIdTextCommands = [];

        res.value.forEach(function(elem) {
            elementIdTextCommands.push(self.elementIdText(elem.ELEMENT));
        });

        return this.unify(elementIdTextCommands, {
            extractValue: true
        });

    });

};
@@ -67,17 +67,372 @@
 elector.
+ Make sure the element%0A * you want to request the text from %5Bis interactable%5D(http://www.w3.org/TR/webdriver/#interactable)%0A * otherwise you will get an empty string as return value. If the element is disabled or not%0A * visible and you still want to receive the text content use %5BgetHTML%5D(http://webdriver.io/api/property/getHTML.html)%0A * as a workaround.
 %0A
-
  *%0A * %3Ce
@@ -578,16 +578,81 @@
   %3C/div%3E
+%0A    &nbsp;%0A    %3Cspan style=%22display: none%22%3EI am invisible%3C/span%3E
 %0A%0A    :g
@@ -772,16 +772,16 @@
 lowing:%0A
-
         
@@ -840,16 +840,164 @@
  elitr%22%0A
+    %7D)%0A    .getText('span').then(function(text) %7B%0A        console.log(text);%0A        // outputs %22%22 (empty string) since element is not interactable%0A
     %7D);%0A

add note for getText to make aware of not interactable elements - refs #726 [ci skip]