html - how to get element nightwatchjs -


i'm newbie topic.i want use waitforelementpresent,

      <a class="qa-header-tjk" href="javascript:;">tjk</a>         module.exports={        tags:['bilyoner login'],        'bilyoner login test' :function (browser){        browser        .url('www.bilyoner.com')        .waitforelementpresent('.qa-header-tjk',100);         }        }; 

but doesnt work. returns timed out while waiting element <.qa-header-tjk> present 100 milliseconds. - expected "found" got: "not found".

but couldnt find solution. helps.

because timeout small ,the default timeout 500ms should set timeout greater 500ms instead of 100ms.100ms not enough loading page.

instead of

.waitforelementpresent('.qa-header-tjk',100);

you should try

.waitforelementpresent('a[class=qa-header-tjk]',1000); 

Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -