在终端中执行arc命令以启动Appium控制台时出现以下错误。
/Users/neetesh/.rvm/gems/ruby-2.2.3/gems/appium_lib-8.0.0/lib/appium_lib/driver.rb:85:in `load_appium_txt': toml doesn't exist /Users/neetesh/appium/appium.txt (RuntimeError)
from /Users/neetesh/.rvm/gems/ruby-2.2.3/gems/appium_console-1.0.4/lib/appium_console.rb:14:in `block in <top (required)>'
from /Users/neetesh/.rvm/gems/ruby-2.2.3/gems/appium_console-1.0.4/lib/appium_console.rb:37:in `<module:Console>'
from /Users/neetesh/.rvm/gems/ruby-2.2.3/gems/appium_console-1.0.4/lib/appium_console.rb:31:in `<module:Appium>'
from /Users/neetesh/.rvm/gems/ruby-2.2.3/gems/appium_console-1.0.4/lib/appium_console.rb:30:in `<top (required)>'
from /Users/neetesh/.rvm/rubies/ruby-2.2.3/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:69:in `require'
from /Users/neetesh/.rvm/rubies/ruby-2.2.3/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:69:in `require'
from /Users/neetesh/.rvm/gems/ruby-2.2.3/gems/appium_console-1.0.4/bin/arc:66:in `<top (required)>'
from /Users/neetesh/.rvm/gems/ruby-2.2.3/bin/arc:23:in `load'
from /Users/neetesh/.rvm/gems/ruby-2.2.3/bin/arc:23:in `<main>'
from /Users/neetesh/.rvm/gems/ruby-2.2.3/bin/ruby_executable_hooks:15:in `eval'
from /Users/neetesh/.rvm/gems/ruby-2.2.3/bin/ruby_executable_hooks:15:in `<main>'
答案 0 :(得分:1)
appium ruby控制台需要一个appium.txt
文件来启动一个会话,否则它会抛出错误。
Check this file for reference.根据您的错误日志,文件路径应为:/Users/neetesh/appium/appium.txt