Gets current location of browser, this does not return actual location but it returns values of browser location. This is done to provide mocking behavior for unit testing.
Gets current location of browser, this does not return actual location but it returns values of browser location. This is done to provide mocking behavior for unit testing.
Internal usage
Internal usage
Call this method before any method that should expect an alert. You can add many alerts, but each expected alert will only be called once.
Call this method before any method that should expect a confirm. You can add many confirms, but each expected confirm will only be called once.
Call this method before any method that should expect a notification. You can add many alerts, but each expected alert will only be called once.
Call this method before any method that should expect a window of given type. Each window will only be used once and return value in windowAction will be resolved in promise created by openWindow call.
Call this method before any method that should expect a window of given type. Each window will only be used once and return value in windowAction will be resolved in promise created by openWindow call.
Navigate current browser to given url.
Internal usage
Sends signal to remove window/popup/frame, it will not immediately remove, because it will identify whether it can remove or not by displaying cancellation warning. Only if there is no cancellation warning or user chooses to force close, it will not remove.
true if view was removed successfully
Generated using TypeDoc
Mock of WindowService for unit tests
MockWindowService
{WindowService}