require 'selenium-webdriver' require 'rutl/interface/windows/windows_app' module RUTL module Interface # # Notepad. # class Notepad < WindowsApp def initialize @app_name = 'notepad.exe' driver_opts = base_opts driver_opts[:caps][:app] = 'C:\Windows\System32\notepad.exe' @driver = Appium::Driver.new(driver_opts, false) @driver.start super end def current_view # This only works because I only have one view. # Should I? What about dialogs? @views.first end end end end