|
|
|
作者: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()")
|
|
|