用户名:
密 码:
验证码:





        
Zee脚本练习之六:LoadRunner中real协议的 自动化测试体系整体解决方案探讨
    Silktest - Click HTML objects using JavaScript
作者:Palani  来源:NetWork  日期:2008-10-17 10:22:30 阅读(1010)

I was facing a problem, to click a HtmlImage or HtmlCheckbox, which are non-visible objects in the web page. The scrollbars are not native scrollbars. Silktest is unable to click those objects.

I was reading through SilkTest help 'JavaScript: running with ExecMethod' and went through a Knowledge base article. They helped me to solve this problem. The "ExecMethod()" function runs a JavaScript method or property on an object within a webpage. This function can be used to simulate a mouse click on the form element. Following 4test statement, will simulate a mouse click on the Image object.

wImage.ExecMethod("click()")


昵称:  

                  

联系我们 管理中心 Email:wan1314sq@126.com  QQ:236835793  MSN:lantian.wei@hotmail.com

Copyright@2007-2010 LantianWeiV3.0

备案编号:沪ICP备07012456号