API for integration testing. To be used on test images with a test component extension.
API for integration testing. To be used on test images with a test component extension. * available since Chrome 30
(bootstrap-machine-learning-service)
Makes a basic request to ML Service, triggering 1. ML Service daemon startup, and 2. the initial D-Bus -> Mojo IPC bootstrap.
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [].
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Makes a basic request to ML Service, triggering 1. ML Service daemon startup, and 2. the initial D-Bus -> Mojo IPC bootstrap. This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is []. In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(close-app app-id)
Closes an application the given appId in case it was running.
|app-id| - ?
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [].
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Closes an application the given appId in case it was running. |app-id| - ? This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is []. In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(export-crostini path)
Export the crostini container.
|path| - The path in Downloads to save the export.
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [].
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Export the crostini container. |path| - The path in Downloads to save the export. This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is []. In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(get-arc-app app-id)
Gets information about the requested ARC app.
|app-id| - ?
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [package] where:
|package| - ?
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Gets information about the requested ARC app. |app-id| - ? This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is [package] where: |package| - ? In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(get-arc-package package-name)
Gets information about requested ARC package.
|package-name| - ?
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [package] where:
|package| - ?
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Gets information about requested ARC package. |package-name| - ? This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is [package] where: |package| - ? In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(get-arc-state)
Get state of the ARC session.
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [result] where:
|result| - ?
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Get state of the ARC session. This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is [result] where: |result| - ? In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(get-extensions-info)
Get info about installed extensions.
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [info] where:
|info| - ?
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Get info about installed extensions. This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is [info] where: |info| - ? In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(get-histogram name)
Get details about a histogram displayed at chrome://histogram.
|name| - Histogram name, e.g. 'Accessibility.CrosAutoclick'.
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [histogram] where:
|histogram| - ?
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Get details about a histogram displayed at chrome://histogram. |name| - Histogram name, e.g. 'Accessibility.CrosAutoclick'. This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is [histogram] where: |histogram| - ? In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(get-play-store-state)
Get state of the Play Store.
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [result] where:
|result| - ?
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Get state of the Play Store. This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is [result] where: |result| - ? In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(get-primary-display-scale-factor)
Get the primary display scale factor. |callback| is invoked with the scale factor.
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [scale-factor] where:
|scale-factor| - ?
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Get the primary display scale factor. |callback| is invoked with the scale factor. This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is [scale-factor] where: |scale-factor| - ? In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(get-printer-list)
Get list of available printers
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [printers] where:
|printers| - ?
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Get list of available printers This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is [printers] where: |printers| - ? In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(get-shelf-alignment display-id)
Get the shelf alignment.
|display-id| - display that contains the shelf. |callback| is invoked with the shelf alignment type.
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [alignment] where:
|alignment| - ?
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Get the shelf alignment. |display-id| - display that contains the shelf. |callback| is invoked with the shelf alignment type. This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is [alignment] where: |alignment| - ? In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(get-shelf-auto-hide-behavior display-id)
Get the shelf auto hide behavior.
|display-id| - display that contains the shelf. |callback| is invoked with the shelf auto hide behavior. Possible behavior values are: 'always', 'never' or 'hidden'.
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [behavior] where:
|behavior| - ?
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Get the shelf auto hide behavior. |display-id| - display that contains the shelf. |callback| is invoked with the shelf auto hide behavior. Possible behavior values are: 'always', 'never' or 'hidden'. This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is [behavior] where: |behavior| - ? In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(get-visible-notifications)
Get visible notifications on the system.
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [notifications] where:
|notifications| - ?
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Get visible notifications on the system. This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is [notifications] where: |notifications| - ? In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(import-crostini path)
Import the crostini container.
|path| - The path in Downloads to read the import.
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [].
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Import the crostini container. |path| - The path in Downloads to read the import. This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is []. In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(is-app-shown app-id)
Returns true if requested app is shown in Chrome.
|app-id| - ?
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [app-shown] where:
|app-shown| - ?
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Returns true if requested app is shown in Chrome. |app-id| - ? This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is [app-shown] where: |app-shown| - ? In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(is-arc-provisioned)
Returns true if ARC is provisioned. [deprecated='Use getArcState()']
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [arc-provisioned] where:
|arc-provisioned| - ?
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Returns true if ARC is provisioned. [deprecated='Use getArcState()'] This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is [arc-provisioned] where: |arc-provisioned| - ? In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(is-tablet-mode-enabled)
Get the tablet mode enabled status. |callback| is invoked with the tablet mode enablement status.
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [enabled] where:
|enabled| - ?
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Get the tablet mode enabled status. |callback| is invoked with the tablet mode enablement status. This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is [enabled] where: |enabled| - ? In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(launch-app app-id)
Launches an application from the launcher with the given appId.
|app-id| - ?
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [].
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Launches an application from the launcher with the given appId. |app-id| - ? This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is []. In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(launch-arc-app app-id intent)
Launches ARC app with optional intent. Returns true if ARC is active, app exists and launch request is passed to Android.
|app-id| - ? |intent| - ?
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [app-launched] where:
|app-launched| - ?
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Launches ARC app with optional intent. Returns true if ARC is active, app exists and launch request is passed to Android. |app-id| - ? |intent| - ? This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is [app-launched] where: |app-launched| - ? In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(login-status)
Get login status.
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [status] where:
|status| - ?
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Get login status. This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is [status] where: |status| - ? In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(remove-printer printer-id)
Remove printer.
|printer-id| - ?
Remove printer. |printer-id| - ?
(run-crostini-installer)
Run the crostini installer GUI to install the default crostini vm / container and create sshfs mount. The installer launches the crostini terminal app on completion. The installer expects that crostini is not already installed.
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [].
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Run the crostini installer GUI to install the default crostini vm / container and create sshfs mount. The installer launches the crostini terminal app on completion. The installer expects that crostini is not already installed. This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is []. In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(run-crostini-uninstaller)
Run the crostini uninstaller GUI to remove the default crostini vm / container. The callback is invoked upon completion.
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [].
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Run the crostini uninstaller GUI to remove the default crostini vm / container. The callback is invoked upon completion. This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is []. In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(send-assistant-text-query query timeout-ms)
Send a text query via Google Assistant.
|query| - ? |timeout-ms| - ?
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [response] where:
|response| - ?
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Send a text query via Google Assistant. |query| - ? |timeout-ms| - ? This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is [response] where: |response| - ? In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(set-assistant-enabled enabled timeout-ms)
Enable/disable the Google Assistant
|enabled| - ? |timeout-ms| - ?
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [].
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Enable/disable the Google Assistant |enabled| - ? |timeout-ms| - ? This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is []. In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(set-crostini-app-scaled app-id scaled)
Enable/disable a Crostini app's 'scaled' property.
|app-id| - The Crostini application ID. |scaled| - The app is 'scaled' when shown, which means it uses low display density.
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [].
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Enable/disable a Crostini app's 'scaled' property. |app-id| - The Crostini application ID. |scaled| - The app is 'scaled' when shown, which means it uses low display density. This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is []. In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(set-crostini-enabled enabled)
Enable/disable Crostini in preferences.
|enabled| - Enable Crostini.
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [].
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Enable/disable Crostini in preferences. |enabled| - Enable Crostini. This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is []. In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(set-mouse-reverse-scroll enabled)
Turn on/off reverse scrolling for mice.
|enabled| - if set, enable reverse scrolling.
Turn on/off reverse scrolling for mice. |enabled| - if set, enable reverse scrolling.
(set-mouse-sensitivity value)
Set the mouse pointer sensitivity setting.
|value| - the pointer sensitivity setting index.
Set the mouse pointer sensitivity setting. |value| - the pointer sensitivity setting index.
(set-natural-scroll enabled)
Turn on/off Australian scrolling for devices other than wheel mouse.
|enabled| - if set, enable Australian scrolling.
Turn on/off Australian scrolling for devices other than wheel mouse. |enabled| - if set, enable Australian scrolling.
(set-play-store-enabled enabled)
Enable/disable the Play Store.
|enabled| - if set, enable the Play Store.
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [].
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Enable/disable the Play Store. |enabled| - if set, enable the Play Store. This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is []. In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(set-primary-button-right right)
Swap the primary mouse button for left click.
|right| - if set, swap the primary mouse button.
Swap the primary mouse button for left click. |right| - if set, swap the primary mouse button.
(set-shelf-alignment display-id alignment)
Set the shelf alignment.
|display-id| - display that contains the shelf. |alignment| - the type of alignment to set.
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [].
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Set the shelf alignment. |display-id| - display that contains the shelf. |alignment| - the type of alignment to set. This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is []. In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(set-shelf-auto-hide-behavior display-id behavior)
Set the shelf auto hide behavior.
|display-id| - display that contains the shelf. |behavior| - an enum of 'always', 'never' or 'hidden'.
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [].
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Set the shelf auto hide behavior. |display-id| - display that contains the shelf. |behavior| - an enum of 'always', 'never' or 'hidden'. This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is []. In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(set-tablet-mode-enabled enabled)
Enable/disable tablet mode. After calling this function, it won't be possible to physically switch to/from tablet mode since that functionality will be disabled.
|enabled| - if set, enable tablet mode.
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [enabled] where:
|enabled| - ?
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Enable/disable tablet mode. After calling this function, it won't be possible to physically switch to/from tablet mode since that functionality will be disabled. |enabled| - if set, enable tablet mode. This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is [enabled] where: |enabled| - ? In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(set-tap-dragging enabled)
Turn on/off tap dragging for the touchpad.
|enabled| - if set, enable tap dragging.
Turn on/off tap dragging for the touchpad. |enabled| - if set, enable tap dragging.
(set-tap-to-click enabled)
Turn on/off tap-to-click for the touchpad.
|enabled| - if set, enable tap-to-click.
Turn on/off tap-to-click for the touchpad. |enabled| - if set, enable tap-to-click.
(set-three-finger-click enabled)
Turn on/off three finger click for the touchpad.
|enabled| - if set, enable three finger click.
Turn on/off three finger click for the touchpad. |enabled| - if set, enable three finger click.
(set-touchpad-sensitivity value)
Set the touchpad pointer sensitivity setting.
|value| - the pointer sensitivity setting index.
Set the touchpad pointer sensitivity setting. |value| - the pointer sensitivity setting index.
(set-whitelisted-pref pref-name value)
Set value for the specified user pref in the pref tree.
|pref-name| - ? |value| - ?
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [].
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Set value for the specified user pref in the pref tree. |pref-name| - ? |value| - ? This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is []. In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(show-virtual-keyboard-if-enabled)
Show virtual keyboard of the current input method if it's available.
Show virtual keyboard of the current input method if it's available.
(shutdown force)
Shutdown the browser.
|force| - if set, ignore ongoing downloads and onunbeforeunload handlers.
Shutdown the browser. |force| - if set, ignore ongoing downloads and onunbeforeunload handlers.
(simulate-asan-memory-bug)
Simulates a memory access bug for asan testing.
Simulates a memory access bug for asan testing.
(take-screenshot)
Takes a screenshot and returns the data in base64 encoded PNG format.
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [base64-png] where:
|base64-png| - ?
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Takes a screenshot and returns the data in base64 encoded PNG format. This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is [base64-png] where: |base64-png| - ? In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(tap-all-events chan)
Taps all valid non-deprecated events in chromex.ext.autotest-private namespace.
Taps all valid non-deprecated events in chromex.ext.autotest-private namespace.
(update-printer printer)
Update printer. Printer with empty ID is considered new.
|printer| - ?
Update printer. Printer with empty ID is considered new. |printer| - ?
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close