Optional
timeout: numberReturns a thenable object (promise interface) that resolves when a specific event occurs
Optional
filter: WaitForFilterReturns a thenable object (promise interface) that resolves when a specific event occurs
Optional
options: WaitForOptions
Returns a thenable object (promise interface) that resolves when a specific event occurs