Skip to content

Commit

Permalink
more robust test
Browse files Browse the repository at this point in the history
  • Loading branch information
rbri committed Aug 15, 2024
1 parent d1eb495 commit da38fd4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,6 @@ public void attributeValue() throws Exception {
verifyTitle2(driver, expected);
}


/**
* Test case for issue #1811.
* @throws Exception if the test fails
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,17 +72,19 @@ public void rows() throws Exception {
final String frameContent =
"<html><head><title>TopFrame</title>\n"
+ "<script>\n"
+ LOG_WINDOW_NAME_FUNCTION
+ "function doTest() {\n"
+ " alert(parent.document.getElementById('fs').rows);\n"
+ " log(parent.document.getElementById('fs').rows);\n"
+ " parent.document.getElementById('fs').rows = '*,*';\n"
+ " alert(parent.document.getElementById('fs').rows);\n"
+ " log(parent.document.getElementById('fs').rows);\n"
+ "}</script>\n"
+ "</head>\n"
+ "<body onload='doTest()'></body></html>";

getMockWebConnection().setResponse(URL_SECOND, frameContent);

loadPageWithAlerts2(framesetContent);
loadPage2(framesetContent);
verifyWindowName2(getWebDriver(), getExpectedAlerts());
}

/**
Expand Down

0 comments on commit da38fd4

Please sign in to comment.