Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/automician/playright
/ functions
Functions
81 in github.com/automician/playright
⨍
Functions
81
◇
Types & classes
17
↓ 16 callers
Method
handle
()
lib/element.ts:43
↓ 14 callers
Method
$
(selector: string)
lib/page.ts:73
↓ 11 callers
Method
$$
(selector: string)
lib/page.ts:83
↓ 11 callers
Method
call
(entity: T)
lib/callables.ts:34
↓ 11 callers
Method
for
* TODO: allow accepting as callable a simple fn, * potentially hacked by utils named * same way like queries * @param callable
lib/wait.ts:59
↓ 9 callers
Method
press
* * @param key Name of the key to press or a character to generate, * such as `ArrowLeft` or `a`. * @param options should be like ElementHand
lib/element.ts:175
↓ 9 callers
Method
type
* * @param text * @param options should be like ElementHandleTypeOptions from playwright * but without timeout becuase we have our own waitin
lib/element.ts:125
↓ 8 callers
Method
should
(condition: Condition<Element>)
lib/element.ts:109
↓ 6 callers
Method
click
({ button = 'left', // |"right"|"middle"; clickCount = 1, delay = 0, position = undefined,
lib/element.ts:188
↓ 5 callers
Method
failIfNotActual
( description: string, query: Callable<E, A>, // TODO: what about accepting simple fn here? predic
lib/callables.ts:118
↓ 5 callers
Method
goto
(absoluteOrRelativeUrl: string)
lib/page.ts:62
↓ 5 callers
Method
handles
()
lib/elements.ts:43
↓ 4 callers
Method
by
(condition: Condition<Element>)
lib/elements.ts:131
↓ 4 callers
Method
matches
(entity: E)
lib/callables.ts:88
↓ 2 callers
Function
arrayCompareBy
lib/utils.ts:89
↓ 2 callers
Method
cachedArray
()
lib/elements.ts:64
↓ 2 callers
Method
failIfNot
( description: string, predicate: (entity: E) => Promise<boolean>, )
lib/callables.ts:107
↓ 2 callers
Method
text
()
lib/element.ts:276
↓ 1 callers
Method
$
(selector: string)
lib/element.ts:59
↓ 1 callers
Method
$
* * @param index number of element in elements collection starting from 1
lib/elements.ts:81
↓ 1 callers
Method
and
(condition: Condition<E>)
lib/callables.ts:80
↓ 1 callers
Function
attribute
(name: string)
lib/queries.ts:54
↓ 1 callers
Function
attributeWithValue
(name: string, value: string)
lib/conditions.ts:66
↓ 1 callers
Function
attributeWithoutValue
(name: string)
lib/conditions.ts:75
↓ 1 callers
Method
call
(entity: E)
lib/callables.ts:72
↓ 1 callers
Function
equalsIgnoringCase
(expected: V)
lib/utils.ts:45
↓ 1 callers
Method
fill
* * @param value * @param options should be like ElementHandleFillOptions from playwright * but without timeout becuase we have our own waiti
lib/element.ts:146
↓ 1 callers
Method
firstBy
(condition: Condition<Element>)
lib/elements.ts:104
↓ 1 callers
Function
includesIgnoringCase
(expected: any)
lib/utils.ts:64
↓ 1 callers
Function
includesWordIgnoringCase
(expected: string)
lib/utils.ts:76
↓ 1 callers
Method
toString
()
lib/element.ts:282
↓ 1 callers
Method
toString
()
lib/elements.ts:158
↓ 1 callers
Method
toString
()
lib/callables.ts:103
Method
$$
(selector: string)
lib/element.ts:73
Method
asPredicate
* Transforms Conditions, i.e. Matchers that return (void | throws Error), * combined by AND * to async Predicate that returns (true | false)
lib/callables.ts:192
Method
atMost
(timeout: number)
lib/wait.ts:45
Function
attribute
(name: string, value?: string)
lib/conditions.ts:83
Method
cached
()
lib/elements.ts:53
Function
click
( options = {}, // WISH: consider adding option values here too )
lib/commands.ts:40
Method
constructor
( private readonly find: Locator<driver.ElementHandle<Node>>, // TODO: but should we rename options to
lib/element.ts:32
Method
constructor
( // TODO: consider accepting WaitOptions object instead entity: T, atMost: number, orFailWith
lib/wait.ts:34
Method
constructor
( page: playwright.Page, options: Configuration, )
lib/page.ts:53
Method
constructor
( private readonly find: Locator<playwright.ElementHandle<Node>[]>, private readonly options: Configur
lib/elements.ts:33
Method
constructor
( private readonly description: string, private readonly fn: Lambda<E, void>, )
lib/callables.ts:64
Method
constructor
(message = 'condition not matched')
lib/errors/ConditionNotMatchedError.ts:24
Method
contextClick
()
lib/element.ts:252
Function
count
(num: number)
lib/conditions.ts:104
Function
cssClass
(name: string)
lib/conditions.ts:59
Method
doubleClick
({ button = 'left', // |"right"|"middle"; delay = 0, position = undefined, modifiers = undefin
lib/element.ts:221
Function
element
(locator: string)
lib/conditions.ts:91
Function
equals
(expected: V, ignoreCase = false)
lib/utils.ts:48
Function
exactText
(expected: string | number | RegExp)
lib/conditions.ts:50
Method
first
()
lib/elements.ts:100
Method
hover
({ position = undefined, modifiers = undefined, // Array<"Alt"|"Control"|"Meta"|"Shift">, force =
lib/element.ts:257
Function
includes
(expected: any, ignoreCase = false)
lib/utils.ts:67
Function
includesWord
(expected: string, ignoreCase = false)
lib/utils.ts:82
Function
isAbsolute
(relativeOrAbsoluteUrl: string)
lib/utils.ts:36
Function
isGreaterThan
(expected: V)
lib/utils.ts:52
Function
isGreaterThanOrEqual
(expected: V)
lib/utils.ts:55
Function
isLessThan
(expected: V)
lib/utils.ts:58
Function
isLessThanOrEqual
(expected: V)
lib/utils.ts:61
Function
isTruthy
(something: V)
lib/utils.ts:42
Function
matches
(expected: any)
lib/utils.ts:73
Function
named
(description: string, fn: F)
lib/utils.ts:28
Method
not
()
lib/callables.ts:76
Method
or
(condition: Condition<E>)
lib/callables.ts:84
Method
orFailWith
(handler: (error: TimeoutError) => Promise<Error>)
lib/wait.ts:49
Method
parent
()
lib/element.ts:89
Function
pipe
(...fns)
lib/utils.ts:24
Method
predicate
()
lib/callables.ts:95
Function
press
(text: string, { delay = 0, noWaitAfter = false } = {})
lib/commands.ts:31
Method
setValue
(value: string)
lib/element.ts:157
Method
should
(condition: Condition<Elements>)
lib/elements.ts:153
Function
text
(expected: string | number | RegExp)
lib/conditions.ts:41
Function
texts
(...values: string[] | number[])
lib/conditions.ts:97
Function
toString
(obj: O)
lib/utils.ts:26
Method
toString
()
lib/errors/TimeoutError.ts:24
Function
type
(text: string, { delay = 0, noWaitAfter = false } = {})
lib/commands.ts:36
Method
until
(callable: Callable<T, R>)
lib/wait.ts:92
Method
wait
()
lib/element.ts:104
Method
wait
()
lib/elements.ts:47