Sha256: dee3b532049c30bb87fb251a4873139e419cfeba705c6c483723c6bd8f2f204b
Contents?: true
Size: 970 Bytes
Versions: 12
Compression:
Stored size: 970 Bytes
Contents
module Appium module Android # Click the first alert button that contains value or by index. # @param value [Integer, String] either an integer index of the button or the button's name # @return [void] def alert_click value button(value).click end # Accept the alert. # The last button is considered "accept." # @return [void] def alert_accept last_button.click end # Get the text of the alert's accept button. # The last button is considered "accept." # @return [String] def alert_accept_text last_button.text end # Dismiss the alert. # The first button is considered "dismiss." # @return [void] def alert_dismiss first_button.click end # Get the text of the alert's dismiss button. # The first button is considered "dismiss." # @return [String] def alert_dismiss_text first_button.text end end # module Android end # module Appium
Version data entries
12 entries across 12 versions & 1 rubygems