The online community for software testing & quality assurance professionals
Calendar   Today's Topics

Lost Password?


Testing Tools >> HP Functional Testing / Mercury QuickTest Pro / QTP

Pages: 1

Reged: 11/08/12
Posts: 4
Select value from WPF Dropdown Menu
      #719844 - 11/15/12 03:52 AM


Application built on WPF + .Net 4.0. and is a desktop client.
There is a scenario in my testing that when I type some values in the editbox there opens a suggestion drop down. From the drop down we need to pick the values.
But I am unable to spy over that dropdown object and also cannot add that in the OR.

Since there are more than one value suggested when we enter the exact value in edit box, can't select 1st value by hitting Enter.

Any suggestions....

Post Extras: Print Post   Remind Me!   Notify Moderator  

Reged: 07/21/10
Posts: 47
Loc: Kyiv
Re: Select value from WPF Dropdown Menu [Re: RiteshChandan]
      #719928 - 11/29/12 04:40 AM

You can create in repository 2 or 3 non-ddl(WebEdits and/or WebElements) objects instead of one drop-down list. Then following behavior of these objects you can process everything as one drop-down list (in script).
To open WedList, which is recognized as WebEdit, you can use FireEvent "onClick" (just for example). If opened list with values is recognized as group of WebElements you can process them in cycle, by selecting of desired value via FireEvent "onMouseMove" for corresponding WebElement item.

All are not hunters that blow the horn

Post Extras: Print Post   Remind Me!   Notify Moderator  

Reged: 01/29/10
Posts: 52
Re: Select value from WPF Dropdown Menu [Re: satkha]
      #719948 - 12/05/12 01:24 PM

You can also try Sendkeys option, once the first value is selected, u can send the "down" key and select..

Post Extras: Print Post   Remind Me!   Notify Moderator  
Pages: 1

Extra information
0 registered and 54 anonymous users are browsing this forum.

Moderator:  IanFraser, Rajkumar_Rajangam, thorwath, TReddy, AJ, Tarun Lalwani, mwsrosso 

Print Topic

Forum Permissions
      You cannot start new topics
      You cannot reply to topics
      HTML is disabled
      UBBCode is enabled

Topic views: 3749

Rate this topic

Jump to

Contact Us | Privacy statement SQAForums

Powered by UBB.threads™ 6.5.5