MDL-46817 behat: Table selector support css

Previously table selector supported id and caption only.
But in few cases we don't have proper id, so added support
for css
This commit is contained in:
Rajesh Taneja
2014-08-15 13:17:06 +08:00
parent 2aa6dd4c60
commit c8121c53d1
+3
View File
@@ -110,6 +110,9 @@ XPATH
, 'filemanager' => <<<XPATH
//div[contains(concat(' ', normalize-space(@class), ' '), ' ffilemanager ')]
/descendant::input[@id = //label[contains(normalize-space(string(.)), %locator%)]/@for]
XPATH
, 'table' => <<<XPATH
.//table[(./@id = %locator% or contains(.//caption, %locator%) or contains(concat(' ', normalize-space(@class), ' '), %locator% ))]
XPATH
);