Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 11
Línea 60... Línea 60...
60
        // Check if it is not already opened.
60
        // Check if it is not already opened.
61
        if ($node->getAttribute('aria-expanded') === 'true') {
61
        if ($node->getAttribute('aria-expanded') === 'true') {
62
            return;
62
            return;
63
        }
63
        }
Línea 64... Línea -...
64
 
-
 
65
        $this->ensure_node_is_visible($node);
64
 
66
        $node->click();
65
        $node->click();
Línea 67... Línea 66...
67
    }
66
    }
68
 
67
 
Línea 85... Línea 84...
85
        $menuitems = explode('>', $menuitemstring);
84
        $menuitems = explode('>', $menuitemstring);
86
        foreach ($menuitems as $menuitem) {
85
        foreach ($menuitems as $menuitem) {
87
            // Gets the node based on the requested selector type and locator.
86
            // Gets the node based on the requested selector type and locator.
88
            $menuselector = ".moodle-actionmenu .dropdown.show .dropdown-menu";
87
            $menuselector = ".moodle-actionmenu .dropdown.show .dropdown-menu";
89
            $node = $this->get_node_in_container("link", trim($menuitem), "css_element", $menuselector);
88
            $node = $this->get_node_in_container("link", trim($menuitem), "css_element", $menuselector);
90
            $this->ensure_node_is_visible($node);
-
 
91
            $node->click();
89
            $node->click();
92
        }
90
        }
Línea 93... Línea 91...
93
 
91