selenium-google-code-issue-archive
selenium-google-code-issue-archive copied to clipboard
POST-Statement is turned to GET-request for no obvious reason
Originally reported on Google Code with ID 7622
Hi guys,
I'm writing automated tests for a rich internet application within our company.
First of all my setup:
Selenium version: IEDriverServer_Win32_2.42.0
OS: Windows 7
Browser: Internet Explorer
Browser version: 10.0.18
Now, what is the problem?
At a certain point the test in question should click on an image.
via: specialButton.Click();
The button:
<img title="specialButton" class="browsingAktion" onclick="doSomething('AAA', 'XXX')"
src="/images/specialButton.gif"/>
Expected behaviour:
If you click this IMG manually, a POST-statement is send and a new dialog shows up
in an overlaying div. <-- manually this does work!
Occuring behaviour:
When the IEDriver is started up and the selenium tests comes up to this Click() the
problem hits in.
Instead of a POST-statement a GET-request is fired (I checked this in Fiddler).
If I now stop the test but leave the IEDriver open and then again try to click the
button manually, the POST is also turned into a GET.
So since the problem only occurs when the IEDriver is started up, I thought it might
have something to do with how the IEDriver works at this particular moment.
We have this problem only since we changed from IE 9 to IE 10. This problem did not
occure in IE 9 and is also not reproducable in this browser version.
Also using different versions (32bit/64bit) of the IEDriver does not solve the issue.
I'm very sorry I can not provide any code/click examples at this point.
Still, maybe you have an idea why this problem shows up. Where is the difference in
the IEDriver working with IE10 and IE9.
What do you recommend me to try to locate this error more thoroughly? What would you
do?
Thanks so far.
John
Reported by sidekick.john on 2014-07-18 08:51:55
The send POST-Statement is a form (see below) which is then .submit().
Clicking the IMG as mentioned above fills in the INPUT values for AAA and XXX.
Maybe that helps a little.
<FORM name="superForm" method="POST" action="/superWindow/" target="SuperContentName">
<INPUT type="hidden" name="ID1" value="<%=ctx.getZMDatMan().toString()%>">
<INPUT type="hidden" name="ID2" value="<%=ctx.getZMDatMan2().toString()%>">
<INPUT type="hidden" name="VERSION" value="1">
<INPUT type="hidden" name="RETURNMODE" value="NONE">
<INPUT type="hidden" name="SEARCHSCOPE" value="CURRENT_DATA_ONLY_INCL_DELETED">
<INPUT type="hidden" name="SEARCHUSECASE" value="AMBIGUOUS">
<INPUT type="hidden" name="AAA" value="">
<INPUT type="hidden" name="XXX" value="">
</FORM>
Reported by sidekick.john on 2014-07-18 10:52:19
Reported by barancev on 2014-07-21 19:25:48
- Labels added: Browser-IE
Hi,I meet the same thing.
Selenium version: IEDriverServer_Win32_2.42.2
OS: Windows vista
Browser: Internet Explorer
Browser version: 9.0.8112
var form = $('<form />', { id: "xx", name: "xx", action: config.apiUrl("/xxx/preview/"
+ 12345 ), method: "POST", target: "popup", onSubmit: "{return false;}"});
var w = window.open('./resources/app/close.html','popup','toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=400,height=300,left
= 9999,top = 234');
var input = $('<input />', {
type: 'hidden',
name: "json"
}).appendTo(form);
form.appendTo("#yyy");
document.forms["xx"].submit();
Reported by cannking668 on 2014-10-17 07:41:05
Reported by luke.semerau on 2015-09-17 17:47:04
- Labels added: Restrict-AddIssueComment-Commit