This repository has been archived on 2025-01-19. You can view files and clone it, but cannot push or open issues or pull requests.
drupalcampbristol/vendor/jcalderonzumba/gastonjs/src/Exception/ObsoleteNode.php

30 lines
754 B
PHP

<?php
namespace Zumba\GastonJS\Exception;
/**
* Class ObsoleteNode
* @package Zumba\GastonJS\Exception
*/
class ObsoleteNode extends ClientError {
/**
* @param array $response
*/
public function __construct($response) {
parent::__construct($response);
$this->message = $this->message();
}
/**
* @return string
*/
public function message() {
return "The element you are trying to interact with is either not part of the DOM, or is
not currently visible on the page (perhaps display: none is set).
It's possible the element has been replaced by another element and you meant to interact with
the new element. If so you need to do a new 'find' in order to get a reference to the
new element.";
}
}