I have posted similar question, but did not recieve any solution. So simplifying the question. When a hyperlink gets focus thru TAB, a dotted line appears around it. I m unable to capture that event. This happens when no "outline:none" is defined for a page in CSS files. The object.currentstyle.outlinestyle is giving none when it should give dotted line. I have tried minimizing the qtp and run the script. I can see dotted line, but script give none. Please help me with any insights. [img]/images/graemlins/mad.gif[/img]
Thank You for the reply. Yes it does have other property. But the requirement was to get dotted line around (browser specific -IE only, yellow outline in Chrome) in IE when user uses Keyboard to navigate through the page. Hence test is to test that dotted line.
I was reading about QTP 11.5. From what I understood, I saw that they will have some new bitmap features. Maybe something where part of an image can be masked out. Also the image can appear "someplace" within a region. Maybe there will be a way to look for an edge of the outline. There was another product around 15 years ago for automation called citratest that had this capability. Maybe they will add it to QTP 11.5. I would rather communicate with the object methods, but if the image comparison rules are improved, it may be an alternate way.
When in Florida, Don't Tampa with the code. I made this up.
I have wrtten script to minimise the qtp window and hit tab. I can see outline appearing. There is a function in DOM to get this characterstic that is
page().Link().Object.Currentstyle.outlinestyle. But it is giving me output as NONE when it should be DOTTED. It is about accessing CSS file to check teh CSS SELECTOR. Looks like QTP 11 + handles CSS better than 10. I m using 10.
Thanks for your valuable input though. Hopefully i would be able to figure out something. If you get some way around it, do let me know. Thank you for your time.