Geeks Talk

Prepare for your Next Interview


Welcome to the Geeks Talk forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Help with Java Swing Menus

This is a discussion on Help with Java Swing Menus within the QTP forums, part of the Software Testing category; I am trying to work with Java Menus using QTP. The menu items contain US states and territories. There are 3 types of menus: (1) States by themselves. (2) States ...

Go Back   Geeks Talk > Software Testing > QTP
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read
  #1 (permalink)  
Old 04-01-2009
Junior Member
 
Join Date: Jan 2008
Location: Rochester, NY
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
rlongoba is on a distinguished road
Angry Help with Java Swing Menus

I am trying to work with Java Menus using QTP. The menu items contain US states and territories. There are 3 types of menus: (1) States by themselves. (2) States broken up by their first initial A-M and N-Z (3) States broken down in a submenu object again broken up by their first initial A-M and N-Z. How does one select the state at a submenu level? Is there some way to query at what level of the menu that it lies? I have tried using Exist statements at each level, but this did not seem to work????

I need to select the state from this Menu structure. Any help working with Java Swing Menus would be appreciated. The 3 levels can be summarized as follows:
JavaWindow(object).JavaDialog(object).JavaMenu(state)

JavaWindow(object).JavaDialog(object).JavaMenu(state_range).JavaMenu(state)

JavaWindow(object).JavaDialog(object).JavaMenu(submenu).JavaMenu(state_range).JavaMenu(state)
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 04-02-2009
Expert Member
 
Join Date: Apr 2008
Location: Tamilnadu
Posts: 1,461
Thanks: 15
Thanked 150 Times in 141 Posts
deepasree has a spectacular aura aboutdeepasree has a spectacular aura about
Re: Help with Java Swing Menus

hi friend,

Exist statement will not work try identifying innertext and html tag of that specific menu and will surely identify the sub menu

Thanks
Deepasree
Reply With Quote
Reply

  Geeks Talk > Software Testing > QTP

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 On
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
Swing nikhil015 Java 2 06-27-2009 03:00 PM
file upload using java swing and applet kumarprabu Java 0 06-20-2008 05:21 AM
In VB Application QTP is not recognising Menus. Consultant_A QTP 1 06-18-2007 08:56 AM
diff b/w AWT and Swing vmshenoy Java 2 01-05-2007 06:06 AM
Swing Question Informatiker Java 2 09-16-2006 03:53 PM


All times are GMT -4. The time now is 04:02 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2009 GeekInterview.com. All Rights Reserved