class RUTL::Interface::Hello
The hello world app with an exit button.
Public Class Methods
new()
click to toggle source
Calls superclass method
# File lib/rutl/interface/windows/hello.rb, line 14 def initialize @app = WindowsTestApp.new(name: "ruby #{file_name}", title: /hello world/i) @app.start driver_opts = base_opts # Have to start app then attach winappdriver because these both fail: # 1. passing hello.rb path as [:caps][:app] # 2. passing ruby.exe path as [:caps][:app] and passing hello.rb # path as [:caps][:appArguments] driver_opts[:caps][:appTopLevelWindow] = @app.window_handle_string @driver = Appium::Driver.new(driver_opts, false) @driver.start super end
Public Instance Methods
current_view()
click to toggle source
# File lib/rutl/interface/windows/hello.rb, line 29 def current_view # This only works because I only have one view. # Should I? What about dialogs? @views.first end
file_name()
click to toggle source
# File lib/rutl/interface/windows/hello.rb, line 10 def file_name File.expand_path('../../../../spec/hello.rb', __dir__) end