Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QTP and Menu Labels with ShortCuts
#1
Not Solved
Hi All,

I am working on scripting for a .Net based application. There are WinMenu options that I am trying to verify their labels. Two of the labels include Ctrl+S type shortcuts on the end of the labels. I can get the label and record it in my results. I then took that and set it to a variable and tried a compare as a "checkpoint", but it fails everytime saying the values are not equal. I do not understand this as I took the value it outputted before from a
lbl= menuObjfm.GetItemProperty(itemPathfm, "Label") type code.

Does anyone have any idea why the two values are not matching, but when printed side by side they look exactly alike?

Please any help would be greatly appreciated.

Thank you
Jen
Reply
#2
Not Solved Sad 
So I have also noticed that the length of the label from the menu and the lentgh of the text I copied from the label are exactly the same, as expected. However the StrComp() is still returning -1. A simple menuLabel = "Save Ctrl+S" does not work. Would there be some way to convert the label to just string values? My assumption is that the short cut has some code behind it that does not allow the comparision to occur correctly.

PLEASE HELP! This is really an issue since QTP's checkpoints dont work with the menu labels directly.

Thanks again,
Jen
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Handling .NET framework menu in webpage using QTP 10 vishnu1067 0 2,343 05-15-2014, 05:30 PM
Last Post: vishnu1067
  Keyboard Shortcuts "Ctrl+s" are not working in QTP11 dipti 0 3,042 12-31-2012, 05:08 PM
Last Post: dipti
At MISSING MENU ITEMS IN QTP ahmet571 2 4,066 11-27-2012, 02:42 PM
Last Post: Prashant kandukuri
  Menu is not displayed on the website to run QTP 11 jacosta 1 2,519 10-02-2012, 08:47 PM
Last Post: freeboynil
  create drop Down list or menu in qtp abansal 0 3,100 09-07-2012, 05:31 PM
Last Post: abansal

Forum Jump:


Users browsing this thread: 1 Guest(s)