If the browser cannot evaluate a method or property after ExecMethod sends it, SilkTest is unable to provide you any further information such as runtime errors because it cannot retrieve them from the browser. Furthermore, SilkTest cannot know how much or how little of the language set (JavaScript) that the browser supports. Calling ExecMethod() on a BrowserChild executes the JavaScript against the "Window" object for that frame. You can use it to access "document" properties/methods of a frame. To do so, you must include "document" in the ExecMethod() call: TheFrame.ExecMethod ("document.") Some examples of the types of problems and information ExecMethod can be used to resolve or retrieve; How can the SilkTest ExecMethod() function be used to change the caption of an HtmlPushButton? How can a tool tip implemented using an ALT tag be retrieved using SilkTest? How can SilkTest be used to get the "sourceIndex" of Html objects within a webpage? How can SilkTest be used to retrieve the background colour of HtmlText objects? How can SilkTest be used to return the font size of an HtmlPushButton caption? How can a list of disabled items from a HtmlPopupList be returned using SilkTest? How can details of an HtmlLink be returned using Javascript ? How can SilkTest return the source name of an Html element from a webpage? How can SilkTest return the "tagName" of an Html element from a webpage? How can properties of JavaScript based Html be verified with SilkTest? How can SilkTest be used to retrieve the path name of a Hyperlink? How can SilkTest be used to click on an HTML object using JavaScript? How can I get SilkTest to read the HTML source of a page or frame? How is the "Click()" implemented a on a webpage using Javascript functionality? Old KB# 21291
↧