Intelligent Automation & Macro Software  

Go Back   Automation Anywhere, Inc. Forums > Products Zone > Testing Anywhere
Register FAQ Search Today's Posts Mark Forums Read

Testing Anywhere Post messages and questions related to Testing Anywhere here.


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-22-2010, 04:23 AM
rachelle rachelle is offline
Junior Member
 
Join Date: Apr 2010
Posts: 1
Default How to set checking on a combo box

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?
Reply With Quote
  #2 (permalink)  
Old 04-23-2010, 10:12 PM
forumsupport forumsupport is offline
Senior Member
 
Join Date: Apr 2007
Posts: 1,342
Default

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.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -7. The time now is 05:49 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.0.0 ©2007, Crawlability, Inc.
Copyright © 2003-2011 Automation Anywhere, Inc. All rights reserved