HumHub Documentation (unofficial)

IsElementDisplayedAtom
in package

Certain drivers have decided to not provide the endpoint which determines element displayedness, because the W3C WebDriver specification no longer dictates it.

In those instances, we determine this using a script ("atom").

Tags
see
https://w3c.github.io/webdriver/#element-displayedness

Also note in case more than this one atom is used, this logic here should be refactored to some AbstractAtom.

Table of Contents

Constants

BROWSERS_WITH_ENDPOINT_SUPPORT  = [\Facebook\WebDriver\Remote\WebDriverBrowserType::CHROME, \Facebook\WebDriver\Remote\WebDriverBrowserType::FIREFOX, \Facebook\WebDriver\Remote\WebDriverBrowserType::MICROSOFT_EDGE]
List of browsers which are known to support /displayed endpoint on their own (so they don't need this atom).

Properties

$driver  : RemoteWebDriver

Methods

__construct()  : mixed
execute()  : mixed
match()  : mixed
executeAtom()  : mixed
loadAtomScript()  : mixed

Constants

BROWSERS_WITH_ENDPOINT_SUPPORT

List of browsers which are known to support /displayed endpoint on their own (so they don't need this atom).

public array<string|int, mixed> BROWSERS_WITH_ENDPOINT_SUPPORT = [\Facebook\WebDriver\Remote\WebDriverBrowserType::CHROME, \Facebook\WebDriver\Remote\WebDriverBrowserType::FIREFOX, \Facebook\WebDriver\Remote\WebDriverBrowserType::MICROSOFT_EDGE]

Properties

Methods

executeAtom()

protected executeAtom(mixed $atomName, mixed ...$params) : mixed
Parameters
$atomName : mixed
$params : mixed

        
On this page

Search results