[英]Creating html canvas automation tests with Test Studio
I am currently investigating Telerik Test Studio to generate automated tests and I have been trying to figure out a way to create automated tests for our application that uses a GoJS html 5 canvas. 我目前正在研究Telerik Test Studio以生成自动化测试,并且我一直在尝试寻找一种为使用GoJS html 5 canvas的应用程序创建自动化测试的方法。 I have noticed two ways so far:
到目前为止,我已经注意到了两种方法:
HtmlCanvas canvas = new HtmlCanvas(ActiveBrowser.Find.AllElements().FirstOrDefault(w => w.TagName == "canvas"));
HtmlCanvas canvas = new HtmlCanvas(ActiveBrowser.Find.AllElements()。FirstOrDefault(w => w.TagName ==“ canvas”));
What would be the best way to approach this scenario? 解决这种情况的最佳方法是什么? Where is a good place to find more information and examples regarding Test Studio HtmlCanvas?
在哪里可以找到有关Test Studio HtmlCanvas的更多信息和示例的好地方?
I suggest that you look at the http://gojs.net/latest/extensions/Robot.html sample, and then make use of the http://gojs.net/latest/extensions/Robot.js extension in your test system. 我建议您查看http://gojs.net/latest/extensions/Robot.html示例,然后在测试系统中使用http://gojs.net/latest/extensions/Robot.js扩展。
Note that the coordinates used by Robot are in GoJS document coordinates, not screen coordinates or any particular HTML element's coordinates. 请注意,Robot使用的坐标是GoJS文档坐标,而不是屏幕坐标或任何特定HTML元素的坐标。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.