![]() |
| |||||||
Testing Anywhere Post messages and questions related to Testing Anywhere here. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| |||
|
How do you set checking on a combo box for example I want to check if that combo box contains this certain value? I tried the window object variable the chose advance and chose drop down but how do I compare the values?
|
| |||
|
Hello, What you can do is, using Manage Windows Control command first get the total number of items in a combo/drop-down, then loop for this total number of items and inside loop, select item by index and then get the selected item into any user variable for further comparison. Below is the text format of commands. 1) Get Total items from Drop Down in Window Assign to variable "$Prompt-Assignment$" 2) Start Loop "$Prompt-Assignment$" Times 3) Select Item by Index from Drop Down in Window: Index : "$Counter$" 4) Get Selected Item from Drop Down in Window: Assign to variable "$Clipboard$" 5) If $Clipboard$ Includes "Desired Value" Then 6) Comment: Please enter the conditional commands here. 7) End If 8) End Loop Please find demo on Manage Windows Control (MWC) at, http://www.tethyssolutions.com/MWC_Demo.html Hope that helps. If you could tell us more about your case, we would be able to help you more with specific task. |
![]() |
| Thread Tools | |
| Display Modes | |
| |