Obtenha texto
const assert = require('assert')
describe('v5.webdriver.io', () => {
it('should demonstrate the gettext function', async () => {
await browser.url('https://v5.webdriver.io')
const blogButton = await $('[href="/blog/"]');
console.log( "text for element:" +await blogButton.getText());
})
})
Vivacious Vicuña