Even I faced similar problem in my current project few days back. I tried
with various methods and came up with below solution. Try this, it might
help u as well -
1) Click on the "Drop" image of weblist and identify the drop down image
using QTP object spy. Note down its properties.
2) Click on the image and scroll your object spy till you find a webelement
having html tag as "DIV". There will be hidden webelement. So you need to
move your mouse very slightly over the edges of the list.
Now once this is done, try below code -
Set oele = Description.Create()
oele("Micclass").value = "WebElement"
oele("html tag").value = "LI"
Browser("name:=Browser").Page("title:=Page").Frame("name:=Frame").WebElement("html
id:=.*_Arrow").Click
Set objd =
Browser("name:=Browser").Page("title:=Page").Frame("name:=Frame").WebElement("html
tag:=DIV","html id:=.*DropDown").ChildObjects(oele)
Ranno=RandomNumber(1,objd.count)
objd(Ranno).click
I used random function to get my values clicked randomly. You can directly
pass the number of your choice. Hope this helps you.
Revert in case of queries.
Regards,
Nachiket
On Friday, May 23, 2014 12:03:39 AM UTC+5:30, sandeep shivpujan singh wrote:
>
> Thanks for the reply.
>
> Right now I am handling it using descriptive programming.
> 1. Clicking on the webelement (weblist previously)
> 2. Using send keys to send DOWN arrow keys to move and send ENTER key to
> click
>
> Sendkeys are unpredictable in nature.. A little interference and the step
> fails.
>
> Please let me know if there is any other way to do it. 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]
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/d/optout.