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()")
Borland - SilkTest's KB Article: http://support.borland.com/kbshow.php?q=20434
Tuesday, June 17, 2008
Silktest - Click HTML objects using JavaScript
Labels:
automation,
javascript,
silktest,
solution,
Tips
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment