Selectors

Playwright\Selector\SelectorsInterface

Methods

register()

void

Register a custom selector engine.

function register(string $name, string $script, array|RegisterOptions $options = []): void

setTestIdAttribute()

void

Set the test id attribute name.

function setTestIdAttribute(string $attributeName): void

getTestIdAttribute()

string

Get the current test id attribute name.

function getTestIdAttribute(): string