FCU pada elemen

const assert = require('assert')

describe('v5.webdriver.io', () => {

    it('should detect the focus of an element', async () => {
        await browser.url('https://v5.webdriver.io');

        const inputsearch  = await $('#search_input_react');
        console.log('Search is focused befor click' + await inputsearch.isFocused()); // outputs: false
    
        await inputsearch.click();
        console.log ('Search is focused after click' +await inputsearch.isFocused()); // outputs: true
    })

})
Vivacious Vicuña