简体   繁体   中英

Can we integrate Sikuli and Selenium Web driver using Ruby

I want to login using selenium web driver (in ruby) for windows authentication system, so i need sikuli integration to achieve login. Is there any way to integrate

You will have to install sikuli gem and also Sikuli IDE. And then require sikuli gem in the script in which you want to automate using Sikuli.

And write sikuli code to automate part you want to automate using Sikuli.

require 'selenium-webdriver'
require 'sikuli'

screen = Sikuli::Screen.new

username = screen.click(<path_to_username_text_field_image_file>)
screen.type("username")

password = screen.click(<path_to_password_text_field_image_file>)
screen.type("password")

screen.click(<path_to_ok_button_image_file>)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM