Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Unable to select value from Weblist using QTP
#1
Solved: 10 Years, 9 Months ago
Hi All,

I am trying to select a particular value from a weblist using QTP. The value is identified and highlighted, but it is not getting selected to the weblist

Code:
Source_Accnt="Access V"   'TEST DATA
Src_Accnt=Browser("browser").Page("page").WebList("list").GetROProperty("all items")
Src_list=split(Src_Accnt,";")
For i=0 to ubound(Src_list)
    Accnt_Source=Src_list(i)
    If instr( Accnt_Source,Source_Accnt) Then   'EXPECTED DATA IS "Access V...$57,689.65"
        Browser("browser").Page("page").WebList("list").Select Accnt_Source
                         Exit For
              End If
Next

The script is run without any error. In application the weblist still displays the defeault value "Please select". If we expand the weblist, "Access V...$57,689.65" value is highlighted in the list.

Could you please help me with the code so that the weblist displays the highlighted value?

Thank you


Messages In This Thread
Unable to select value from Weblist using QTP - by neenumaria - 08-07-2012, 04:48 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to match weblist data with expected values Anupama 5 2,546 05-18-2018, 12:15 PM
Last Post: Ankur
  WebElement (only Weblist) is not getting identified in QTP 11, Windows 7 priyaang 3 5,544 06-26-2015, 12:39 AM
Last Post: supputuri
  Application Issue on selecting value from weblist using UFT 12.1 on run sunilkgupta 0 2,187 01-01-2015, 08:22 PM
Last Post: sunilkgupta
  Unable to select items from WebLists CosmaShiva 8 6,598 07-23-2012, 06:23 PM
Last Post: Tarik Sheth

Forum Jump:


Users browsing this thread: 1 Guest(s)