Sha256: f0fdd019142d8c5f10888e09ade336c261adbad3b888ba3f768848c8cce51604
Contents?: true
Size: 775 Bytes
Versions: 1
Compression:
Stored size: 775 Bytes
Contents
require 'selenium-webdriver' require 'rutl/interface/base' module RUTL module Interface # # Parent class for all Windows apps. # class WindowsApp < Base def base_opts { caps: { platformName: 'WINDOWS', platform: 'WINDOWS', deviceName: 'WindowsPC' }, appium_lib: { wait_timeout: 2, wait_interval: 0.01 } } end def kill system "taskkill /f /im #{@app_name} /t 1>nul 2>&1" end def open? @driver.find_elements(:id, 0) true rescue Selenium::WebDriver::Error::NoSuchWindowError false end def quit @driver.driver_quit kill end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rutl-0.8.0 | lib/rutl/interface/windows/windows_app.rb |