Im having an issue with my tests where I select a button and then switch to the windwo that opens after i select the button, the issue is having is that i keep getting no frame exceptions and Out of bounds exception.
My code is:
clickWithActions(driver, launchNote);
sleepForTime(6000);
Set<String> handles = driver.getWindowHandles();
List list = Arrays.asList(handles.toArray());
driver.switchTo().window(list.get(1).toString());
sleepForTime(6000);
driver.manage().window().maximize();
driver.manage().window().setSize(new Dimension(1920, 1080));
break;
Is there any way that i can wait for this window to appear first with out long waits?
Aucun commentaire:
Enregistrer un commentaire