This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module SystemHelper | |
require 'Open3' | |
require 'Nokogiri' | |
def uiautomator_dump | |
puts "Chamando uiautomator_dump" | |
stdout, stderr, status = exec_adb('shell uiautomator dump') | |
unless /dumped to: (?<file>\S*)/ =~ stdout |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require File.join(File.dirname(__FILE__), 'modules', 'helper') | |
class ComprarScreen < AndroidScreenBase | |
include SystemHelper | |
# Identificador da tela | |
trait(:trait) { "* id:'#{layout_name}'" } | |
# Declare todos os elementos da tela | |
element(:layout_name) { 'insert_layout_identificator' } | |
# element(:button) { 'insert_button_identificator' } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ xcode-select --print-path | |
/Applications/Xcode.app/Contents/Developer | |
$ xcodebuild -version | |
Xcode 8.0 | |
Build version 8A218a | |
$ calabash-ios version | |
0.20.3 |