close
Close current window (and focus on an other window). If no window handle is given it automatically switches back to the first handle.
Usage
1 | browser.close([windowHandle]); |
Parameters
Param | Type | Details |
---|---|---|
windowHandle optional |
String | new window to focus on |
Example
1 | it('should demonstrate the close command', function () { |