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:'))
NameTypeDescription
valueunknown
selectorselector | stringWeb element selector.
TypeDescription
selector | stringselector - Web element selector.