Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Object not found
#1
Solved: 10 Years, 8 Months, 2 Weeks ago
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.
Reply
#2
Solved: 10 Years, 8 Months, 2 Weeks ago
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
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  QC Test not found error or not executing remote tests zaira_p 5 9,411 08-04-2015, 10:22 PM
Last Post: mitsuy
  wants to Automate Mainframe app, but at start QTP throws "HLLAPI.dll not found". shirish.ganjewar 0 5,074 10-14-2010, 01:06 PM
Last Post: shirish.ganjewar

Forum Jump:


Users browsing this thread: 1 Guest(s)