File tree Expand file tree Collapse file tree 3 files changed +4
-6
lines changed
src/org/openqa/selenium/remote Expand file tree Collapse file tree 3 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -89,7 +89,9 @@ public void submit() {
89
89
execute (DriverCommand .SUBMIT_ELEMENT , ImmutableMap .of ("id" , id ));
90
90
} else {
91
91
WebElement form = findElement (By .xpath ("./ancestor-or-self::form" ));
92
- parent .executeScript ("arguments[0].submit()" , form );
92
+ parent .executeScript ("var e = arguments[0].ownerDocument.createEvent('Event');" +
93
+ "e.initEvent('submit', true, true);" +
94
+ "if (arguments[0].dispatchEvent(e)) { arguments[0].submit() }" , form );
93
95
}
94
96
}
95
97
Original file line number Diff line number Diff line change @@ -332,7 +332,6 @@ public void testSendingKeysToAFocusedElementShouldNotBlurThatElement() {
332
332
333
333
@ JavascriptEnabled
334
334
@ Test
335
- @ Ignore (MARIONETTE )
336
335
public void testSubmittingFormFromFormElementShouldFireOnSubmitForThatForm () {
337
336
driver .get (pages .javascriptPage );
338
337
WebElement formElement = driver .findElement (By .id ("submitListeningForm" ));
@@ -341,7 +340,6 @@ public void testSubmittingFormFromFormElementShouldFireOnSubmitForThatForm() {
341
340
}
342
341
343
342
@ JavascriptEnabled
344
- @ Ignore ({MARIONETTE })
345
343
@ Test
346
344
public void testSubmittingFormFromFormInputSubmitElementShouldFireOnSubmitForThatForm () {
347
345
driver .get (pages .javascriptPage );
@@ -351,7 +349,6 @@ public void testSubmittingFormFromFormInputSubmitElementShouldFireOnSubmitForTha
351
349
}
352
350
353
351
@ JavascriptEnabled
354
- @ Ignore ({MARIONETTE })
355
352
@ Test
356
353
public void testSubmittingFormFromFormInputTextElementShouldFireOnSubmitForThatFormAndNotClickOnThatInput () {
357
354
driver .get (pages .javascriptPage );
@@ -404,7 +401,7 @@ public void testShouldReportTheXAndYCoordinatesWhenClicking() {
404
401
}
405
402
406
403
@ JavascriptEnabled
407
- @ Ignore (value = {MARIONETTE }, reason = "Not tested" )
404
+ @ Ignore (value = {MARIONETTE })
408
405
@ Test
409
406
public void testClickEventsShouldBubble () {
410
407
driver .get (pages .clicksPage );
Original file line number Diff line number Diff line change @@ -305,7 +305,6 @@ public void testShouldBeAbleToSwitchToParentFromAnIframe() {
305
305
// ----------------------------------------------------------------------------------------------
306
306
307
307
@ Test
308
- @ Ignore (MARIONETTE )
309
308
public void testShouldContinueToReferToTheSameFrameOnceItHasBeenSelected () {
310
309
driver .get (pages .framesetPage );
311
310
You can’t perform that action at this time.
0 commit comments