Bug fixes:
Testsuite:
Driver testsuite:
wait()
always return a boolean even when the JS expression does not cast the valueMisc:
New features:
Session::getResponseHeader
to access a response header easilyCoreDriver::findElementXpaths
instead of implementing find
and setSession
themselves.Bug fixes:
.php
symfony/phpunit-bridge
to get them reported
when using Mink in your PHPUnit tests.NodeElement::hasClass
in case the class attribute contains newlinesTestsuite:
Driver testsuite:
Misc:
Bug fixes:
WebAssert::cleanUrl()
Driver testsuite:
Misc:
NodeElement::getValue
for checkboxes to return the value rather than the checked state (use isChecked
for that)NodeElement::setValue
to support any fields rather than only input elementsBehat\Mink\Selector\Xpath\Escaper
to allow reusing the XPath escapingElement::getSession
. Code needing the session should get it from outside rather than the elementElement::getOuterHtml
to get the HTML code of the element including itselfplaceholder
only for textual inputsElement::waitFor
to allow retrying some code until it succeeds or the timeout is reachedElement::isValid
to check whether an element still exists in the pageSession::executeScript
compatible across drivers by ensuring they all support the same syntaxes for the JS expressionSession::evaluateScript
compatible across drivers by ensuring they all support the same syntaxes for the JS expressionhasClass
from DocumentElement
(instead of triggering a fatal error)NodeElement::getTagName
to ensure that the tag name is lowercase for all driversElement::hasAttribute
to ensure it supports attributes with an empty valuefield
selector to avoid matching inputs with the type submit
or reset
reset
buttons as wellSession::wait
to return the condition value rather than nothingSession::getWindowName
and Session::getWindowNames
to get the name of the current and of all windowsSession::maximizeWindow
to maximize the windowNodeElement::isSelected
to check whether an <option>
is selectedNodeElement::submitForm
to allow submitting a form without using a buttonWebAssert
CoreDriver
to simplify future drivers improvementsMink::isSessionStarted()
methodpreg_replace
bugsWebAssert::pageText...()
methodsSession::selectWindow()
and Session::selectIFrame()
methodsWebAssert
classBehat\MinkExtension
__toString()
show_tmp_dir
option in MinkContextshould see
stepshould see
step