File tree Expand file tree Collapse file tree 3 files changed +3
-5
lines changed
src/test/java/org/htmlunit Expand file tree Collapse file tree 3 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -1227,7 +1227,7 @@ public void openerInFrameset() throws Exception {
12271227 webClient .setAlertHandler (new CollectingAlertHandler (collectedAlerts ));
12281228
12291229 final HtmlPage page = webClient .getPage (URL_FIRST );
1230- final HtmlPage pageInFrame = (HtmlPage ) (( WebWindow ) page .getFrames ().get (0 ) ).getEnclosedPage ();
1230+ final HtmlPage pageInFrame = (HtmlPage ) page .getFrames ().get (0 ).getEnclosedPage ();
12311231 pageInFrame .getAnchors ().get (0 ).click ();
12321232
12331233 final String [] expectedAlerts = {"null" , "null" };
Original file line number Diff line number Diff line change 2020import org .htmlunit .SimpleWebTestCase ;
2121import org .htmlunit .WebClient ;
2222import org .htmlunit .html .FrameWindow ;
23- import org .htmlunit .html .HtmlElement ;
2423import org .htmlunit .html .HtmlInlineFrame ;
2524import org .htmlunit .html .HtmlPage ;
2625import org .htmlunit .junit .BrowserRunner ;
@@ -130,7 +129,7 @@ public void removeFrameWindow() throws Exception {
130129 assertEquals ("frame content" , ((HtmlPage ) page .getFrameByName ("content" ).getEnclosedPage ()).asNormalizedText ());
131130
132131 // replace frame tag with javascript
133- (( HtmlElement ) page .getElementById ("clickId" ) ).click ();
132+ page .getElementById ("clickId" ).click ();
134133
135134 assertEquals ("new content" , page .getElementById ("content" ).asNormalizedText ());
136135
Original file line number Diff line number Diff line change 4242import org .htmlunit .html .DomElement ;
4343import org .htmlunit .html .HtmlElement ;
4444import org .htmlunit .html .HtmlPage ;
45- import org .htmlunit .html .HtmlSubmitInput ;
4645import org .htmlunit .javascript .host .xml .XMLHttpRequestTest .StreamingServlet ;
4746import org .htmlunit .junit .BrowserRunner ;
4847import org .htmlunit .junit .annotation .Alerts ;
@@ -405,7 +404,7 @@ public void ajaxInfluencesSubmitHeaders() throws Exception {
405404 while (STATE_ < 1 ) {
406405 Thread .sleep (42 );
407406 }
408- (( HtmlSubmitInput ) elem ) .click ();
407+ elem .click ();
409408
410409 client .waitForBackgroundJavaScript (DEFAULT_WAIT_TIME .toMillis ());
411410 assertEquals (COLLECTED_HEADERS .toString (), 2 , COLLECTED_HEADERS .size ());
You can’t perform that action at this time.
0 commit comments