Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 14... Línea 14...
14
// You should have received a copy of the GNU General Public License
14
// You should have received a copy of the GNU General Public License
15
// along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
15
// along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
Línea 16... Línea 16...
16
 
16
 
Línea -... Línea 17...
-
 
17
namespace Moodle\BehatExtension\Driver;
17
namespace Moodle\BehatExtension\Driver;
18
 
Línea 18... Línea 19...
18
 
19
use Behat\Mink\Exception\DriverException;
Línea 19... Línea 20...
19
use OAndreyev\Mink\Driver\WebDriver as UpstreamDriver;
20
use OAndreyev\Mink\Driver\WebDriver as UpstreamDriver;
Línea 77... Línea 78...
77
     * @param string $xpath
78
     * @param string $xpath
78
     */
79
     */
79
    public function post_key($key, $xpath) {
80
    public function post_key($key, $xpath) {
80
        throw new \Exception('No longer used - please use keyDown and keyUp');
81
        throw new \Exception('No longer used - please use keyDown and keyUp');
81
    }
82
    }
-
 
83
 
-
 
84
    #[\Override]
-
 
85
    public function stop(): void {
-
 
86
        try {
-
 
87
            parent::stop();
-
 
88
        } catch (DriverException $e) {
-
 
89
            error_log($e->getMessage());
-
 
90
            $this->webDriver = null;
-
 
91
        }
-
 
92
    }
82
}
93
}