What are you trying to achieve? (Expected behavior)
On our app, we have a login form with method="post". It should be submitted by HTTP POST.
How could the issue be reproduced? (Steps to reproduce)
This form will be sent as "GET" under Chrome headless, which causes our authentication system to crash.
How could the issue be reproduced? (Steps to reproduce)
Chromedriver output was not supra helpful in debugging this, but using a fork of php-webdriver 1.7.1 solved the issue (I needed Symfony 5 compatibility). So I wonder from where the issue is coming.
Details
- Php-webdriver version: latest from
community branch
- PHP version: 7.4.0
- Selenium server version: /
- Operating system: Debian (dockerized)
- Browser used + version: Chromium 78.0.3904.108 + Chromedriver 78.0.3904.70 or 78.0.3904.105 (both have the issue)
The form HTML:
<form method="post">
<h2 class="h3 mb-3 font-weight-normal">{{ 'login.title'|trans }}</h2>
<p>{{ 'login.intro'|trans }}</p>
<div class="form-group">
<label for="inputEmail">{{ 'emailOrUsername'|trans([], 'messages') }}</label>
<input type="email" value="{{ last_username }}" name="email" id="inputEmail" class="form-control" placeholder="Email" required autofocus>
</div>
<div class="form-group">
<label for="inputPassword">{{ 'password'|trans([], 'messages') }}</label>
<input type="password" name="password" id="inputPassword" class="form-control" placeholder="Password" required>
</div>
<input type="hidden" name="_csrf_token" value="{{ csrf_token('authenticate') }}">
<button class="btn btn-lg btn-primary" type="submit" id="login_submit">
{{ 'login.button'|trans }}
</button>
</form>
What are you trying to achieve? (Expected behavior)
On our app, we have a login form with
method="post". It should be submitted by HTTP POST.How could the issue be reproduced? (Steps to reproduce)
This form will be sent as "GET" under Chrome headless, which causes our authentication system to crash.
How could the issue be reproduced? (Steps to reproduce)
Chromedriver output was not supra helpful in debugging this, but using a fork of php-webdriver 1.7.1 solved the issue (I needed Symfony 5 compatibility). So I wonder from where the issue is coming.
Details
communitybranchThe form HTML: