I am trying to automate desktop application using winium. I am not sure how to initialize the object of winium driver and where to place the driver.
Asked
Active
Viewed 251 times
1 Answers
0
From: https://github.com/2gis/Winium.Desktop/issues/165#issuecomment-296646996
require 'selenium-webdriver'
require 'rubygems'
class WiniumTest
def launchApplication
caps = Selenium::WebDriver::Remote::Capabilities.new
caps['app'] = 'C:/windows/system32/calc.exe'
driver = Selenium::WebDriver.for :remote, url: "http://localhost:9999", desired_capabilities: caps
end
end
Test = WiniumTest.new
Test.launchApplication

Mo H.
- 1,788
- 1
- 18
- 28