-
Notifications
You must be signed in to change notification settings - Fork 280
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fieldValueEquals fails on textarea with goutte driver #713
Comments
This seems to known limitation of Goutte driver because of underlying BrowserKit driver is treating |
@aik099 Forgot to change that one, it's actually the Twig variable so on the normal page it's just normal |
So this is isn't a problem anymore? |
No, it's still the same issue. I just meant that it's actually normal text in HTML so |
There is a test in driver test suite, that confirms, that Goutte can get current value from textarea (presuming that textarea initially had that value in HTML and it wasn't set later using JavaScript): https://github.com/minkphp/Mink/blob/master/driver-testsuite/tests/Form/GeneralTest.php#L168 (analog to
|
That scenario needs any JavaScript (that is how I found this as after removing the There was a few markup issues, but after fixing them the issue was not fixed. No, there is only a single textarea on that page. |
Maybe you can add failing test (via PR) in https://github.com/minkphp/Mink/tree/master/driver-testsuite that will demonstrate the problem? |
Assuming you have HTML with textarea containing a value:
And you run the following in the step:
It would fail with Goutte driver as the value is null. This would work fine with Selenium driver. In my opinion it should work in both cases as you're not using any JS and the markup is correct.
Bellow is the dumps of the following lines:
The text was updated successfully, but these errors were encountered: