Not able to locate the element on web page with intern and leadfoot API and getting error

184 Views Asked by At

But this is giving me below error:

NoSuchElement: [POST http://localhost:4444/wd/hub/session/3a9b569788f086d4d68d52d99ab95d76/element/%5Bobject%20Object%5D/click] no such element: Element_id length is invalid

define(function (require) {
    var registerSuite = require('intern!object');
    var assert = require('intern/chai!assert');
    registerSuite({
        name: 'Google',
        'GoogleSearch': function () {
            return this.remote
                .get(require.toUrl('http://www.google.co.in'))
                .setFindTimeout(5000)                
                .findByName('q')
                .click()
                .type("test")               
                .end()
                .sleep(500)
                .findByName('btnK')
                .setFindTimeout(10000)        
                .submit()               
                .end()                          
        }
    });
});
0

There are 0 best solutions below