Skip to content

to()

This function is used to improve the readability. It simply returns the parameter passed into it.

await attach('c:/abc.txt', to('Please select a file:'))
Name Type Description
value unknown
selector selector | string Web element selector.
Type Description
selector | string selector - Web element selector.