public function waitForAtLeastOneVisibleElementOfType($selectorString)
    {
        $this->waitFor(function ($context) use ($selectorString) {
            /** @var Web $context */
            $page = $context->getSession()->getPage();
            /** @var NodeElement[] $nodes */
            $nodes = $page->findAll('css', $selectorString);
            /** @var NodeElement $node */
            foreach ($nodes as $node) {
                if ($node->isVisible()) {
                    return true;
                }
            }
            return false;
        });
    }