title: Nightwatch.js setValue and execute
body: <pre><code>Nightwatch 0.9.19
  Node: 9.3.0
  OS: darwin x64
  
  exports.command = function (username, password) {
      const TIMEOUT = 6000;
      const USER_NAME = '[name="username"]';
      const PASSWORD = '[name="password"]';
      const BODY = 'body';
      const FORM = 'form';
      if (!username) {
          username = this.globals.username;
      }
      if (!password) {
          password = this.globals.password;
      }
      console.log('login', this.globals.baseUrl, username, password);
  
      this.url(this.globals.baseUrl)
          .waitForElementVisible(BODY, TIMEOUT)
          .setValue(USER_NAME, username)
          .getValue(USER_NAME, (result) =&gt; {
              console.log(`=====&gt; Username is: ${result.value} &lt;=====`);
          })
          .waitForElementVisible(USER_NAME, TIMEOUT)
          .waitForElementVisible(PASSWORD, TIMEOUT);
  
      this
          .execute(function (data) {
              document.querySelector(PASSWORD).value = password;
              return true;
          }, [], null)
          .pause(TIMEOUT)
          .getValue(PASSWORD, (result) =&gt; {
              console.log(`=====&gt; Password is: ${result.value} &lt;=====`);
          })
          .submitForm(FORM)
  };
  </code></pre>
  
  <ol>
  <li>When I set hard coded password: 1q2w3e4r it's works. If I use variable it doesn't.</li>
  <li>.setValue(password) ==> result: 1q2we4r (missing: 3)</li>
  </ol>