mirror of
https://github.com/silverstripe/silverstripe-behat-extension
synced 2024-09-27 20:06:31 +02:00
Merge pull request #49 from jeffreyguo/pulls/single-quote-getregion
handle single quote with build-in way in getRegionObj
This commit is contained in:
commit
e72395956c
@ -137,7 +137,8 @@ class SilverStripeContext extends MinkContext implements SilverStripeAwareContex
|
||||
*/
|
||||
public function getRegionObj($region) {
|
||||
// Try to find regions directly by CSS selector
|
||||
$regionObj = $this->getSession()->getPage()->find('css', $region);
|
||||
$regionObj = $this->getSession()->getPage()->find('css',
|
||||
$this->getSession()->getSelectorsHandler()->xpathLiteral($region));
|
||||
if($regionObj) {
|
||||
return $regionObj;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user