Pregunta de entrevista de NiCE

Write an automation code for handling multiple windows.

Respuesta de la entrevista

Anónimo

16 de oct de 2024

Set s1 = driver.getWindowHandles(); Iterator i1 = s1.iterator(); String parentWindow = i1.next(); String childWindow = i1.next(); driver.SwitchTo().Window(childwindow);