Object not found - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP) +--- Forum: UFT / QTP Others (https://www.learnqtp.com/forums/Forum-UFT-QTP-Others) +--- Thread: Object not found (/Thread-Object-not-found) |
Object not found - SarodeGirish - 01-13-2011 Hi All, Qtp does not recognise the webelement.the webelement is placed under the page and not under the frame or table. Code: Browser("title:=American Express.*").Page("title:=American Express.*").WebElement("name:=Valider,innertext:=Valider,index:=1").Click Anybody have solution. RE: Object not found - tdevick - 02-23-2011 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: Code: Browser("title:=American Express.*").Page("title:=American Express.*").WebElement("micclass":="WebElement", "html tag":="DIV" "name:=Valider,innertext:=Valider,index:=1").Click |