My form (which is inside a dropdown menu) has 3 dropdowns (select option) and 2 texts input. This form is used to apply filters to a list of items. I am able to fill my inputs and to select my options without the use of a JavascriptExecutor, it works fine with .sendKeys("Text")
for text inputs and sendKeys(Keys.ARROW_DOWN)
for the dropdown options.
But, when I do btn.submit()
or btn.sendKeys("\n")
or btn.sendKeys(Keys.ENTER)
or btn.click()
, it clicks the button and the dropdown menu which contains the form disappears, but the page doesn't refresh. So I am able to click the button with selenium (and even if I force it manually I cannot click the submit button, but the button does not trigger anything.
I have been stuck on this issue for 3 days. I tried to find the answer to my problem but the IEDriver click issue's solution seems to be the diagnostic but it is not, because I am able to click the button.
Also, when I do the same tests on chrome using the chromedriver, everything works fine.
When I launch IE myself, navigate to the form, fill it in myself and submit it, everything works fine. So, the problem is when I insert data with java, it "disables" the submit button.
Using Kendo UI in IE11, IEDriverServer 64x 3.0.0 (also tried 32x ver.), Java JDK 1.8.0_25 in Windows 10 Pro
I set these capibilities to my IE driver
cap.setCapability("nativeEvents", false);
cap.setCapability("unexpectedAlertBehaviour", "accept");
cap.setCapability("ignoreProtectedModeSettings", true);
cap.setCapability("disable-popup-blocking", true);
cap.setCapability("enablePersistentHover", true);
I have been using selenium for only two weeks but I am very familiar with Java. I read that IE has difficulties with forms here but they do not suggest a fix or a workaround.