功能测试:SIKULI不适用于基本的Google Chrome浏览器 [英] Functional Test: SIKULI doesn't work with basic Google Chrome

查看:308
本文介绍了功能测试:SIKULI不适用于基本的Google Chrome浏览器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人提到我sikuli http://sikuli.org/似乎很棒.

Someone mentionned me sikuli http://sikuli.org/ seems great.

我只是尝试使用google chrome进入yahoo,但是在第6步中为什么无法粘贴网址?

I just try to go to yahoo with google chrome and it fails to paste the url at step 6 why ?

推荐答案

如果您用鼠标单击带有www.google.com的文本字段,则该文本字段将标记为蓝色,因此图片会发生变化.这意味着粘贴操作将失败,因为它无法在屏幕上找到图片.

If you perfrom a mouse click on the textfield with www.google.com in it, it will be marked with blue and so the picture changes. This means that the paste operation will fail because it cant find the picture in your screen.

在这种情况下,最好跳过图像并在单击鼠标后直接将其粘贴.

In this case it would be better to just skip the image and paste it directly after the mouse click.

find("icon.png")
click("icon.png")

wait("textfield.png")

find("textfield.png" )
click("textfield.png" )
paste("yahoo.com")
type(Key.ENTER)

希望这可以解决您的问题.

Hope this solves your problem.

这篇关于功能测试:SIKULI不适用于基本的Google Chrome浏览器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆