02-23-2011, 01:07 AM
I have had similar problems when I do not identify the object type. Is "Valider" actually just a WebElement, or is it specific type like "WebEdit", "WebList", etc? If so, try using the actual object type name in place of WebElement. For example, "WebList("name:=Valider, innertext:=Valider, index:=1").
If it -is- just a WebElement, you may need to specify the type of HTML object. For example, if I'm searching for objects within "<DIV></DIV>" tags, I would have to specify an html class or a QTP object class like in the example below:
If it -is- just a WebElement, you may need to specify the type of HTML object. For example, if I'm searching for objects within "<DIV></DIV>" tags, I would have to specify an html class or a QTP object class like in the example below:
Code:
Browser("title:=American Express.*").Page("title:=American Express.*").WebElement("micclass":="WebElement", "html tag":="DIV" "name:=Valider,innertext:=Valider,index:=1").Click