[英]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. 我想使用Selenium Web驱动程序(在ruby中)登录Windows身份验证系统,所以我需要sikuli集成来实现登录。 Is there any way to integrate
有什么办法可以整合
You will have to install sikuli gem and also Sikuli IDE. 您将必须安装sikuli gem和Sikuli IDE。 And then require sikuli gem in the script in which you want to automate using Sikuli.
然后在要使用Sikuli自动执行的脚本中要求sikuli gem。
And write sikuli code to automate part you want to automate using Sikuli. 并编写sikuli代码以使用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>)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.