Patched to Drupal 8.4.8 level. See https://www.drupal.org/sa-core-2018-004 and patch...
[yaffs-website] / vendor / jcalderonzumba / gastonjs / src / Exception / ObsoleteNode.php
1 <?php
2
3 namespace Zumba\GastonJS\Exception;
4
5 /**
6  * Class ObsoleteNode
7  * @package Zumba\GastonJS\Exception
8  */
9 class ObsoleteNode extends ClientError {
10
11   /**
12    * @param array $response
13    */
14   public function __construct($response) {
15     parent::__construct($response);
16     $this->message = $this->message();
17   }
18
19   /**
20    * @return string
21    */
22   public function message() {
23     return "The element you are trying to interact with is either not part of the DOM, or is
24     not currently visible on the page (perhaps display: none is set).
25     It's possible the element has been replaced by another element and you meant to interact with
26     the new element. If so you need to do a new 'find' in order to get a reference to the
27     new element.";
28   }
29 }