<meta name="description" content=“Testing the meta description BMW, 1-Series, Hatchback, 2011">
I'm trying the following in nightwatchjs;
browser.getText('meta[name="description"][content]', function (metaDescription) {
console.log('meta description = ', metaDescription);
});
but it doesn't work. I just get an empty result.
Could someone please help with how to get the text of the 'content' part of the html.
Many thanks.