简体   繁体   English

我们可以使用Ruby集成Sikuli和Selenium Web驱动程序吗

[英]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.

相关问题 我们可以使用硒脚本中的“ gem sikuli”处理操作系统弹出窗口吗 - Can we handle OS pop-up using “gem sikuli” in selenium script 如何在Ruby中使用Selenium Web驱动程序加载自定义Chrome扩展程序? - How to load custom chrome extension using selenium web driver in ruby? Selenium Web驱动程序使用Ruby从标签的for属性获取文本 - Selenium web driver getting the text from the for attribute of a label using Ruby 如何单击文本区域以使用Selenium Web驱动程序使用ruby发送长文本 - how to click on text area to send long text using ruby with selenium web driver undefined方法select_list使用ruby与watir 2.0和Selenium Web驱动程序一起使用 - undefined method select_list using ruby with watir 2.0 & selenium web driver Selenium Web驱动程序Ruby-元素不可见异常 - Selenium Web Driver Ruby- Element not visible exception ruby selenium web driver - 获取谷歌知识图表内容 - ruby selenium web driver - get google knowledge graph content Ruby Selenium Web Driver:找到xpath元素而不抛出NoSuchElementException - Ruby Selenium Web Driver: find xpath elements without throwing NoSuchElementException 如何在Ruby的Selenium Web驱动程序中获得测试用例名称? - how to get the test case name in selenium web driver in ruby? 无法使用Selenium web-driver点击动态更改表内的href下载链接 - Can't click on href download link inside dynamically changing table using Selenium web-driver
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM