mirror of
https://github.com/silverstripe/silverstripe-behat-extension
synced 2024-10-22 17:05:32 +02:00
handle single quote with build-in way in getRegionObj
This commit is contained in:
parent
1af1620fb4
commit
27a381f4e0
@ -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