MDL-48373 behat: new container selector for list items.

This commit is contained in:
Tim Hunt
2014-12-05 12:18:04 +00:00
parent ae2a9c0e66
commit 201e19d7b6
+5
View File
@@ -43,6 +43,7 @@ class behat_selectors {
'block' => 'block',
'region' => 'region',
'table_row' => 'table_row',
'list_item' => 'list_item',
'table' => 'table',
'fieldset' => 'fieldset',
'css_element' => 'css_element',
@@ -57,6 +58,7 @@ class behat_selectors {
'block' => 'block',
'region' => 'region',
'table_row' => 'table_row',
'list_item' => 'list_item',
'link' => 'link',
'button' => 'button',
'link_or_button' => 'link_or_button',
@@ -106,6 +108,9 @@ XPATH
XPATH
, 'table_row' => <<<XPATH
.//tr[contains(normalize-space(.), %locator%)]
XPATH
, 'list_item' => <<<XPATH
.//li[contains(normalize-space(.), %locator%)]
XPATH
, 'filemanager' => <<<XPATH
//div[contains(concat(' ', normalize-space(@class), ' '), ' ffilemanager ')]