Source
* This method should be overridden in order to reset cached objects that will be broken during reload operation.
<?php
/*
** Zabbix
** Copyright (C) 2001-2022 Zabbix SIA
**
** This program 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 2 of the License, or
** (at your option) any later version.
**
** This program 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 this program; if not, write to the Free Software
** Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
**/
require_once 'vendor/autoload.php';
require_once dirname(__FILE__).'/CBaseElement.php';
require_once dirname(__FILE__).'/CElementQuery.php';
require_once dirname(__FILE__).'/IWaitable.php';
require_once dirname(__FILE__).'/WaitableTrait.php';
require_once dirname(__FILE__).'/CastableTrait.php';
use Facebook\WebDriver\WebDriverExpectedCondition;
use Facebook\WebDriver\Remote\RemoteWebElement;
use Facebook\WebDriver\WebDriverKeys;
/**
* Generic web page element.
*/
class CElement extends CBaseElement implements IWaitable {
/**
* Element can be used as waitable object to wait for element state changes.
*/
use WaitableTrait;
/**
* Element can be used as castable object to cast element to specific type.
*/
use CastableTrait;
/**
* Element selector.
*
* @var WebDriverBy
*/
protected $by;
/**
* Parent element (if any).
* Parent element is never set for elements retrieved from element collection.
*
* @var CElement
*/
protected $parent;