Author Topic: Issue in identifying WebList using DP  (Read 3206 times)

Offline rashmi semwal

  • Newbie
  • *
  • Posts: 9
  • Working On QTP
    • http://
Issue in identifying WebList using DP
« on: January 14, 2009, 05:54:01 am »
hi .

I am facing a problem in object identification on my web application.I am not able to select the value from WebList through DP. I have set all the properties of that weblist.but still not identifying the list...

Can anyone tell me ...wats the problem in identifying the Weblist. though i am able to identify the values of edit boxes in the page..


Thanx
Rashmi

Offline Tarun Lalwani

  • Administrator
  • Hero Member
  • *****
  • Posts: 3029
    • KnowledgeInbox
Re: Issue in identifying WebList using DP
« Reply #1 on: January 14, 2009, 06:16:31 am »
Hi Rashmi,

Please make a new post in such cases instead of replying on some other thread. I have moved your query to a new thread for now.

Coming back to your problem...What is the code you are using and what is the exact error you are facing?
Regards,
Tarun
KnowledgeInbox Administrator

KnowledgeInbox" style="border:0

Offline rashmi semwal

  • Newbie
  • *
  • Posts: 9
  • Working On QTP
    • http://
Re: Issue in identifying WebList using DP
« Reply #2 on: January 14, 2009, 06:58:10 am »
Hi Tarun,

Cannot identify the object "[ WebList ]" (of class WebList). Verify that this object's properties match an object currently displayed in your application.

  i have given all the properties given by the object spy

oDescWebList("name").value = "ctl0$CPH1$lst"
oDescWebList("html id").value = "ctl0$CPH1_lst"
oDescWebList("innertext").value = " abcd"
oDescWebList("html tag").value = "SELECT"
oDescWebList("default value").value ="ab"
oDescWebList("select type").value="ComboBox Select"

and still its not able to select the reuired value from the web list.


Regards
Rashmi

Offline Tarun Lalwani

  • Administrator
  • Hero Member
  • *****
  • Posts: 3029
    • KnowledgeInbox
Re: Issue in identifying WebList using DP
« Reply #3 on: January 14, 2009, 07:07:32 am »
That is your first mistake, you should not overpopulate a DP description as described in my article below

http://knowledgeinbox.com/articles/qtp/descriptive-programming/dp-part-4-common-mistakes/

Another issue as described in the same article, you are using a name which has a regular expression in it. You need to escape that character

oDescWebList("html id").value = "ctl0\$CPH1_lst"

You just need to use the above description and nothing else. Try it out and let me know if it works for you.
Regards,
Tarun
KnowledgeInbox Administrator

KnowledgeInbox" style="border:0

Offline rashmi semwal

  • Newbie
  • *
  • Posts: 9
  • Working On QTP
    • http://
Re: Issue in identifying WebList using DP
« Reply #4 on: January 14, 2009, 08:31:23 am »
Thanx... My problem got resolved by that...

Offline Tarun Lalwani

  • Administrator
  • Hero Member
  • *****
  • Posts: 3029
    • KnowledgeInbox
Re: Issue in identifying WebList using DP
« Reply #5 on: January 14, 2009, 08:33:08 am »
Great. Problem solved. Locking the thread
Regards,
Tarun
KnowledgeInbox Administrator

KnowledgeInbox" style="border:0