10-18-2012, 10:16 AM
(This post was last modified: 10-18-2012, 10:16 AM by harishshenoy.)
Hi,
QTP even wont recognize few of the special charectors , u need to handle them also like a double quote. use '.'(dot) for sinle charector. here is the below expression that might work , also its better to recognize the object with 'class' , html id' rather than 'outer html'....try to use other properties as well.
Thanks,
Harish
QTP even wont recognize few of the special charectors , u need to handle them also like a double quote. use '.'(dot) for sinle charector. here is the below expression that might work , also its better to recognize the object with 'class' , html id' rather than 'outer html'....try to use other properties as well.
Code:
Browser("abc").Page("xyz") .WebElement("html tag:=SPAN","outerhtml:=.SPAN style.""COLOR. .1274c0. FONT.SIZE. 12px. FONT.WEIGHT. bold""...91..22.61638369..SPAN.").Click
Harish