to()
This function is used to improve the readability. It simply returns the parameter passed into it.
Examples
Section titled “Examples”await attach('c:/abc.txt', to('Please select a file:'))Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
value | unknown | |
selector | selector | string | Web element selector. |
Returns
Section titled “Returns”| Type | Description |
|---|---|
| selector | string | selector - Web element selector. |