-
Bug
-
Resolution: Fixed
-
Minor
-
4.3
-
MOODLE_403_STABLE
-
MOODLE_402_STABLE, MOODLE_403_STABLE
-
MDL-80912-403 -
We have several system reports on the same page in Workplace. We want to use a step
@Then /^the following should exist in the "(?P<table_string>[^"]*)" table:$/
|
However we can point it to the second or third reportbuilder table on the page. They all have the same CSS class, no id or caption and the current xpath for the table selector is not flexible enough:
, 'table' => <<<XPATH
|
.//table[(./@id = %locator% or contains(.//caption, %locator%) or contains(.//th, %locator%) or contains(concat(' ', normalize-space(@class), ' '), %locator% ))]
|
XPATH
|
I would like to propose one of the following solutions:
- in the core_reportbuilder api allow to add classes or id or caption to the table (edited by MG to reflect the actual solution)
- OR in the xpath for the 'table' add an option to look for a table that is inside the element with a given id/class (this can be done only for RB tables)
Suggestions are welcome. Thanks