Sha256: 5d46601d2944c00f226da4ae5816a651e89f8ca1b50f93e98102577305568ad4
Contents?: true
Size: 1.08 KB
Versions: 8
Compression:
Stored size: 1.08 KB
Contents
module Appium module Ios module Xcuitest module Command # @param [string] content The content of the pasteboard. The previous content is going to be overridden. # The parameter is mandatory # @option opts [string] :encoding Encoding of the given content. UTF-8 by default. # # ```ruby # set_pasteboard content: "sample content" # ``` def set_pasteboard(content:, encoding: nil) args = { content: content } args[:encoding] = encoding if encoding @driver.execute_script 'mobile: setPasteboard', args end # @option opts [string] :encoding Encoding of the received pasteboard content. UTF-8 by default. # # ```ruby # get_pasteboard encoding: "shift-jis" # ``` def get_pasteboard(encoding: nil) args = {} args[:encoding] = encoding if encoding @driver.execute_script 'mobile: getPasteboard', args end end end # module Xcuitest end # module Ios end # module Appium
Version data entries
8 entries across 8 versions & 1 rubygems