-
1. Re: Test opening a new window via JavaScript
axelberle Apr 9, 2010 9:42 AM (in response to axelberle)I found the following solution:
- After clicking, yield control for some (small) time
The test then passes:
// wait some time
try {
Thread.currentThread().sleep(10);
} catch (InterruptedException e) {
e.printStackTrace();
}
// Verify the popup window exists
WebClient webClient = jsfSession.getWebClient();
List<WebWindow> openWindows = webClient.getWebWindows();
assertEquals("We are expecting 2 windows", 2, openWindows.size());
for (WebWindow window: openWindows) {
LOGGER.debug("Open window: " + window.getName());
} -
2. Re: Test opening a new window via JavaScript
sarojini May 7, 2013 4:04 AM (in response to axelberle)Hi Axel,
Have you worked on testing the contents of the new window? that is the buttons and its actions inside the new window, above the parent Window?
If so help me.