Thread Rating:
  • 2 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How To Find Dropdown Object based on Values from the dropdown list
#13
Solved: 10 Years, 8 Months, 4 Weeks ago
Hi,

I have similar issue in selecting a value from the web list. I have only 2 values in which 1st value is a default and I need to select  second value.

Example source code:

<SELECT id=D_Message.SETLCYCLE_NB class=field style="WIDTH: 60px; POSITION: absolute; LEFT: 120px; TOP: 92px" name=D_Message.SETLCYCLE_NB>
<OPTION id=DefaultValue selected value=1>1</OPTION>
<OPTION id=DefaultValue value=2>2</OPTION>
</select>

My Script:


allitems=Browser("..").Page("..").Frame("..").WebList("..").GetROProperty("all items")
    
    For i = 1 To allitems-1        

             Browser("..").Page("..").Frame("..").WebList("..").Select "2"
Next
        
But still I am not able to select second value from the weblist. Please let me know if I am missing any steps.

Regards,
Sandy
Reply


Messages In This Thread
RE: How To Find Dropdown Object based on Values from the dropdown list - by sandy2404 - 12-19-2017, 10:25 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  how to select value from google search box dropdown +QTP prajyot 0 2,671 06-28-2017, 06:30 PM
Last Post: prajyot
  Trying to create List box in excel sheet at Run time with values yes No JACKSPARROW 0 1,589 01-17-2017, 11:05 AM
Last Post: JACKSPARROW
  General Object Error(Find Object Error) akhandesh 1 3,412 02-24-2016, 01:05 PM
Last Post: sindhus
  Compare second web list value according to the first web list value roselin6 1 2,643 10-07-2015, 09:14 PM
Last Post: supputuri
  Problem selecting in a dropdown menu during playback. qemls29 9 12,456 07-28-2015, 05:44 PM
Last Post: Sharan

Forum Jump:


Users browsing this thread: 1 Guest(s)