Validate Cursor Position
I have the situation where I need to validate that the cursor is in a specific webedit field when I navigate to the page. When I visually look at the page I can see the flashing cursor in the webEdit field however I'm unsure how to validate this with QTP.
Has anyone experienced this before or have any ideas on how the validation can be performed
Re: Validate Cursor Position
you can check for the property "focused" of the webedit field.
it will be 1 when the textfield is currently active (cursor inside) or 0 if not.
if WebEdit("").GetROProperty("focused")=1 then print "textfield is focused"