-
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
Mink strips out : #777
Comments
Is the stripping done by Mink, by Behat of my something between them ? Please provide a reproducer using Mink directly. |
Also, which Mink driver are you using ? |
"Please provide a reproducer using Mink directly" sorry how do i do this? |
I dont know the actual cause if this, but this is what am using temporally /**
* Fills in form field with specified id|name|label|value
* Example: When I fill in "time" with raw "10:10"
*
* @When /^(?:|I )fill in "(?P<field>(?:[^"]|\\")*)" with raw "(?P<value>(?:[^"]|\\")*)"$/
* @param string $field
* @param string $value
*/
public function fillRaw(string $field, string $value)
{
$this->getSession()->evaluateScript("document.getElementsByName('{$field}')[0].value = '{$value}';");
} |
have a look at the functional testsuite of drivers (available at https://github.com/minkphp/driver-testsuite). This gives lots of examples of using Mink directly (to remove any effect coming from other layers). And you still haven't told us which driver you are using |
behat.yml default:
autoload:
'': tests/behat/bootstrap
suites:
default:
paths:
features: "%paths.base%/tests/behat/"
contexts:
- BehatContexts\FeatureContext
extensions:
Behat\MinkExtension:
base_url: https://www.wikipedia.org/
browser_name: chrome
goutte: ~
selenium2:
wd_host: http://127.0.0.1:4444/wd/hub
browser: chrome
capabilities:
chrome:
switches:
- "--window-size=1920,1080" |
this config creates 2 Mink sessions, one using GoutteDriver and one using Selenium2Driver. This does not tell me which one is used for your issue. |
selenium2 the scenarios use |
Mink is striping out
:
from string example:And I fill in "time" with "10:10"
is filled out with1010
also
Is filled out with
Some random test description
The text was updated successfully, but these errors were encountered: