Tried it, but the problem is that dropdown list is not a Weblist but 
WebTable.

I tried following code:

Set WebLinkObj = Browser("Browser Name").Page("Page Name").WebTable("Table 
Name").ChildItem(5,1,"WebElement",0)
WebLinkObj.Click

But once I run it I get the error "Object required: 'WebLinkObj'"

I also tried the following to select 4th option in the dropdown: 
Browser("Browser Name").Page("Page Name").WebTable("Table 
Name").ObjectRows(4).Click

No error messages were thrown, but nothing was selected and script went to 
the next step.

Thanks


On Monday, October 21, 2013 10:03:37 PM UTC-7, Uttmesh Shukla wrote:
>
> Try using this:
>
> Browser(" Browser name").Page("Page name").Weblist(" name").select "#1"   
> 'It will select 1st item in the list
>
> -Uttmesh 
>
>
>
>
> On Tue, Oct 22, 2013 at 2:50 AM, Marko Kostadinovic 
> <[email protected]<javascript:>
> > wrote:
>
>> Hi there,
>>
>> Trying to create some simple automation scripts using QTP, and am stuck. 
>> Hopefully someone can provide me with some help.
>>
>> I have a dropdown list that when i record a click on, show up as: 
>> Browser("Browser Name").Page("Page Name").Image("mt_sprites").Click
>>
>> Problem is that I cannot select anything from the dropdown using QTP as 
>> it does not record me making a selection at all. No matter what I select 
>> from the dropdown list, it is never recorder as code in QTP. I was able to 
>> add manually the option I need selected into the Object Repository, and it 
>> is listed as WebElement (name is WebTable)
>>
>> I have tried using the following code in order for this specific option 
>> to be selected once the dropdown list is shown from the code shown above: 
>> Browser("Browser Name").Page("Page Name").WebElement("WebTable").Click, 
>> however it never gets selected. Dropdown list is shown, but option is not 
>> selected. QTP just moves on to next line and skips making selection I need.
>>
>> Any help how to get past this issue would be appreciated :)
>>
>> Thanks
>>
>> -- 
>> -- 
>> You received this message because you are subscribed to the Google
>> "QTP - HP Quick Test Professional - Automated Software Testing"
>> group.
>> To post to this group, send email to [email protected]<javascript:>
>> To unsubscribe from this group, send email to
>> [email protected] <javascript:>
>> For more options, visit this group at
>> http://groups.google.com/group/MercuryQTP?hl=en
>>  
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "QTP - HP Quick Test Professional - Automated Software Testing" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>

-- 
-- 
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en

--- 
You received this message because you are subscribed to the Google Groups "QTP 
- HP Quick Test Professional - Automated Software Testing" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to