How to use the node-simctl.getPasteboard function in node-simctl

To help you get started, we’ve selected a few node-simctl examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github appium / appium-xcuitest-driver / lib / commands / pasteboard.js View on Github external
commands.mobileGetPasteboard = async function mobileGetPasteboard (opts = {}) {
  if (!this.isSimulator()) {
    throw new Error('Getting pasteboard content is not supported on real devices');
  }
  return await getPasteboard(this.opts.udid, opts.encoding);
};