Wednesday, November 11, 2009

Quik test - to highlight an object using DP

syntax:Object.highlight
Example:
window("Class Name:=Internet Explorer").highlight

Now certain times, one might have the application minimized or in a different state. For highlight to work properly, please use .Activate before actioning .highlight
Example:
window("Class Name:=Internet Explorer").Activate
window("Class Name:=Internet Explorer").highlight

No comments:

Post a Comment