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/"]');
const xblogButton = await blogButton.getText()
console.log( "text for element:" +xblogButton);
})
})
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());
})
})