Modals
DrevOps\BehatSteps\Steps\Web\ModalTrait - Source, Steps
Interact with and assert modals.
public function modalFind(): ?NodeElement
Find the first visible modal, or fall back to the first DOM match
public function modalGetCloseSelectors(): array
Get the CSS selectors for the modal close button
public function modalGetContent(): NodeElement
Get the content element of the visible modal
public function modalGetContentSelectors(): array
Get the CSS selectors for the modal content
public function modalGetElement(string $selector): NodeElement
Get a visible element in the visible modal
public function modalGetSelectors(): array
Get the CSS selectors for the modal container
public function modalGetVisible(): NodeElement
Return the first visible modal
public function modalGetWaitTimeout(): int
Get the timeout in seconds for waiting for the modal to appear
public function modalWaitForAppearWithin(int $seconds): void
Wait for the modal to appear within a number of seconds