MDL-67683 behat: Update xpath selector for #region-main

This commit is contained in:
Jun Pataleta
2025-02-03 15:55:55 +08:00
parent 070a61b84a
commit d9ad34cb1d
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1168,7 +1168,7 @@ class behat_navigation extends behat_base {
protected function select_on_administration_page($nodelist) {
$parentnodes = $nodelist;
$lastnode = array_pop($parentnodes);
$xpath = '//section[@id=\'region-main\']';
$xpath = '//div[@id=\'region-main\']';
// Check if there is a separate tab for this submenu of the page. If found go to it.
if ($parentnodes) {
@@ -289,7 +289,7 @@ class behat_theme_classic_behat_navigation extends behat_navigation {
protected function select_on_administration_page($nodelist) {
$parentnodes = $nodelist;
$lastnode = array_pop($parentnodes);
$xpath = '//section[@id=\'region-main\']';
$xpath = '//div[@id=\'region-main\']';
// Check if there is a separate tab for this submenu of the page. If found go to it.
if ($parentnodes) {