uiauto
uiauto copied to clipboard
crash on start
After installing and starting I get the following crash:
Script: foobar.js
Test: "start"
/Users/thomas/.rvm/gems/ruby-1.9.3-p194/gems/uiauto-0.2.1/lib/uiauto/formatters/color_indent_formatter.rb:45:in `log_debug': undefined method `foreground' for #<String:0x007fb7cbb1b2e8> (NoMethodError)
from /Users/thomas/.rvm/gems/ruby-1.9.3-p194/gems/uiauto-0.2.1/lib/uiauto/reporter.rb:79:in `block in notify_listeners'
from /Users/thomas/.rvm/gems/ruby-1.9.3-p194/gems/uiauto-0.2.1/lib/uiauto/reporter.rb:78:in `each'
from /Users/thomas/.rvm/gems/ruby-1.9.3-p194/gems/uiauto-0.2.1/lib/uiauto/reporter.rb:78:in `notify_listeners'
from /Users/thomas/.rvm/gems/ruby-1.9.3-p194/gems/uiauto-0.2.1/lib/uiauto/reporter.rb:25:in `block in parse_instruments_output'
from /Users/thomas/.rvm/gems/ruby-1.9.3-p194/gems/uiauto-0.2.1/lib/uiauto/reporter.rb:18:in `each'
from /Users/thomas/.rvm/gems/ruby-1.9.3-p194/gems/uiauto-0.2.1/lib/uiauto/reporter.rb:18:in `parse_instruments_output'
from /Users/thomas/.rvm/gems/ruby-1.9.3-p194/gems/uiauto-0.2.1/lib/uiauto/instruments.rb:54:in `block in execute'
from /Users/thomas/.rvm/gems/ruby-1.9.3-p194/gems/uiauto-0.2.1/lib/uiauto/instruments.rb:52:in `loop'
from /Users/thomas/.rvm/gems/ruby-1.9.3-p194/gems/uiauto-0.2.1/lib/uiauto/instruments.rb:52:in `execute'
from /Users/thomas/.rvm/gems/ruby-1.9.3-p194/gems/uiauto-0.2.1/lib/uiauto/runner.rb:49:in `run_one'
from /Users/thomas/.rvm/gems/ruby-1.9.3-p194/gems/uiauto-0.2.1/lib/uiauto/runner.rb:34:in `run'
from /Users/thomas/.rvm/gems/ruby-1.9.3-p194/gems/uiauto-0.2.1/lib/uiauto/cli.rb:71:in `exec'
from /Users/thomas/.rvm/gems/ruby-1.9.3-p194/gems/thor-0.15.0/lib/thor/task.rb:27:in `run'
from /Users/thomas/.rvm/gems/ruby-1.9.3-p194/gems/thor-0.15.0/lib/thor/invocation.rb:120:in `invoke_task'
from /Users/thomas/.rvm/gems/ruby-1.9.3-p194/gems/thor-0.15.0/lib/thor.rb:275:in `dispatch'
from /Users/thomas/.rvm/gems/ruby-1.9.3-p194/gems/thor-0.15.0/lib/thor/base.rb:408:in `start'
from /Users/thomas/.rvm/gems/ruby-1.9.3-p194/gems/uiauto-0.2.1/bin/uiauto:4:in `<top (required)>'
from /Users/thomas/.rvm/gems/ruby-1.9.3-p194/bin/uiauto:19:in `load'
from /Users/thomas/.rvm/gems/ruby-1.9.3-p194/bin/uiauto:19:in `<main>'
I changed ".rvm/gems/ruby-1.9.3-p194/gems/uiauto-0.2.1/bin/uiauto" to this to make it work:
#!/usr/bin/env ruby
require 'rainbow/ext/string'
require 'uiauto/cli'
UIAuto::CLI.start
I get this as well. Doesn't seem easy to fix it.
/Library/Ruby/Gems/2.0.0/gems/uiauto-0.2.1/lib/uiauto/formatters/color_indent_formatter.rb:45:in log_debug': undefined method
foreground' for "target.frontMostApp().mainWindow().buttons()["Sign In"].tap()":String (NoMethodError)
Need to remove the coloring of output to terminal to fix this bug