Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

119
Vistas
Can't interact with web elements in second browser tab in Webdriver.io

I just found this issue and didn't find any topic or solution related to this problem anywhere. When a second browser tab is opened (the new tab is automatically focused) I can not interact with any web elements because Webdriver.io is searching for the respective element in the DOM tree of the first browser tab. I thought if I change focus with browser.switchWindow() to the first tab and then focus on the second again will fix the issue but didn't. I couldn't find a workaround or solution for this problem.

The code below represents my approach.

Given(/^Test given$/, async () => {
    await browser.url("https://www.google.com/?client=safari");
    await browser.newWindow("https://www.facebook.com");
    await $("facebook element selector").click();
});
about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda