Source
xxxxxxxxxx
CElementQuery::waitUntil($this, CElementFilter::ATTRIBUTES_NOT_PRESENT, [$attributes]);
<?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.
**/
use Facebook\WebDriver\Exception\NoSuchElementException;
use Facebook\WebDriver\Exception\StaleElementReferenceException;
/**
* Trait for objects implementing IWaitable interface.
*/
trait WaitableTrait {
/**
* Get object selector (if any) as text.
*
* @return string
*/
public function getSelectorAsText() {
if (isset($this->by)) {
return '"'.$this->by->getValue().'" ('.$this->by->getMechanism().')';
}
return null;
}
/**
* Wait until object is ready.
*
* @return $this
*/
public function waitUntilReady() {
CElementQuery::waitUntil($this, CElementFilter::READY);
return $this;
}
/**
* Wait until object is visible.
*
* @return $this
*/
public function waitUntilVisible() {
CElementQuery::waitUntil($this, CElementFilter::VISIBLE);
return $this;
}
/**
* Wait until object is not visible.
*
* @return $this
*/
public function waitUntilNotVisible() {
CElementQuery::waitUntil($this, CElementFilter::NOT_VISIBLE);
return $this;
}
/**
* Wait until object is present.
*
* @return $this
*/
public function waitUntilPresent() {
CElementQuery::waitUntil($this, CElementFilter::PRESENT);
return $this;
}
/**
* Wait until object is not present.
*
* @return $this
*/
public function waitUntilNotPresent() {