how do a click on a link in webdriverIO
<p>I am trying to click on a link in a web page with webdriverIO.
I can navigate to google.com page and then I enter a search term.</p>

<p>But when I try to click on a link containing the text I want, it doesn't click the link.</p>

<p>What am I doing wrong:</p>

<p>Here is my code:</p>

<pre><code>var webdriverio = require('webdriverio');
var options = {
    desiredCapabilities: {
        //browserName: 'phantomjs'
        browserName: 'chrome'
    }
};
webdriverio
    .remote(options)
    .init()
    .url('http://www.google.com')
    .setValue('*[name="q"]','webdriverio')
    .click('*[name="btnG"]')
    .pause(1000)
    .getTitle().then(function(title) {
        console.log('Title was: ' + title)
    })
    .getText('=webdriver.io').then(function(text) {
        console.log('Title was: ' + text); // outputs: "WebdriverIO"
    })
    .end(); 
</code></pre>

<p>I am running webdriverIO with node.js v6.9.2 and selenium stand alone server 3.0.1.</p>

<p>Thanks.</p>