-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow to pass descriptor into API functions #129
Conversation
API.md
Outdated
|
||
| Param | Type | Description | | ||
| --- | --- | --- | | ||
| pageTitle | <code>string</code> | The title of the web page opened in the window which descriptor should be retrieved. | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| pageTitle | <code>string</code> | The title of the web page opened in a window whose descriptor should be retrieved. |
API.md
Outdated
Retrieves a platform-specific window descriptor for the window that contains a web page with the specified title. | ||
|
||
**Kind**: global [async](http://tc39.github.io/ecmascript-asyncawait/) function | ||
**Returns**: <code>object</code> - a platform-specific window descriptor that can be used as a window identifier in some other API functions. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
**Returns**: <code>object</code> - a platform-specific window descriptor that can be used as a window identifier.
API.md
Outdated
Checks if the specified browser window is maximized. | ||
|
||
**Kind**: global [async](http://tc39.github.io/ecmascript-asyncawait/) function | ||
**Returns**: <code>boolean</code> - `true` if the browser window is maximized | ||
|
||
| Param | Type | Description | | ||
| --- | --- | --- | | ||
| pageTitle | <code>string</code> | The title of the web page opened in the window to check if this window is maximized. | | ||
| windowId | <code>string</code> | <code>object</code> | The title of the web page opened in the window or a descriptor returned by findWindow to check if this window is maximized. | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| windowId | <code>string</code> | <code>object</code> | The title of the web page opened in the window or a descriptor returned by findWindow. |
Please add id of issues that will be closed with this PR |
I thought it will be |
API.md
Outdated
@@ -1,9 +1,12 @@ | |||
## Functions | |||
|
|||
<dl> | |||
<dt><a href="#close">async close(pageTitle)</a></dt> | |||
<dt><a href="#close">async close(windowId)</a></dt> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
API is outdated. Should windowDescriptor
fixes #128
\cc @AlexanderMoskovkin @churkin @VasilyStrelyaev