javascript - cannot get selected text with Nightwatch.js -


i want test selected text value. nightwatch.js api has elementactive() active element:

client.elementactive(function (result) {     console.log(result); }); 

it gives me:

{ state: 'success',   sessionid: 'bc0b1b932cf8dac815bc8f1d94128a3c0d0278bd',   hcode: 16988771,   value: { element: '2' },   class: 'org.openqa.selenium.remote.response',   status: 0 } 

how can selected text?


Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -