close
method gracefully closes the current browser window. For more control, you can also access the browser’s process ID to terminate the entire browser application.
Method Signature
Parameters
Maximum time in seconds to wait for the window to close. If
None
, uses the default system timeout.Return Value
This method returnsNone
and completes when the window has been closed.
Example
- Close Window
- Quit Entire Browser