06-17-2010, 10:01 AM
get 'focus' property using GetROProperty method. returns '1' if object has focus else '0'.
for example if you have to verify a mandatory fields (say "Name") gets focus or not after the warning message. you can use somethine like
similarly you can check this for all mandatory fields.
let me know if this helps.
for example if you have to verify a mandatory fields (say "Name") gets focus or not after the warning message. you can use somethine like
Code:
chkFocus = Browser(" ").Page(" ").WebEdit("Name").GetROProperty("focus")
similarly you can check this for all mandatory fields.
let me know if this helps.