User Tag List

Results 1 to 1 of 1
  1. #1
    Join Date
    Jun 2004
    So Cal
    Post Thanks / Like
    0 Post(s)
    0 Thread(s)

    Trouble with pop-up style menu item

    Hello. I have a menu function I developed in QTP that are indentified as WebElements. I am using FireEvent "onmouseover" and Click methods to navigate these menu's. All is good, except for one. This one is 4 submenu's from the top menu. QTP doesnt fail on it, it seems the AUT (web based) isnt accepting the instruction QTP gives it. Below is part of the QTP code I am using:
    ************************************************** *********
    aMenuAry = Split(iSN_EleID,"-")
    iSubMenID_a = aMenuAry(0)
    iSubMenID_b = aMenuAry(1)
    iSubMenID_c = aMenuAry(2)
    sSN_EleID_a("innertext").Value = iSubMenID_a
    sSN_EleID_b("innertext").Value = iSubMenID_b
    sSN_EleID_c("innertext").Value = iSubMenID_c
    sSN_EleID_a("index").Value = 0
    sSN_EleID_b("index").Value = 0
    sSN_EleID_c("index").Value = 0
    .WebElement(sGoTo).FireEvent "onmouseover"
    .WebElement(sFA_EleID).FireEvent "onmouseover"
    .WebElement(sSN_EleID_a).FireEvent "onmouseover"
    .WebElement(sSN_EleID_b).FireEvent "onmouseover"
    .WebElement(sSN_EleID_c).FireEvent "onmouseover"

    ************************************************** *********
    Variable aMenuAry is aquired from an external datatable that contains the html innertext for each menu item. I can see in the app when QTP executes this code, the menu's are expanding, etc.. Below is a piece of html code from the web page I am testing:
    ************************************************** **********
    <a href="javascript:void(0)" title="_Business Accounts" >_Business Accounts<img src="/IPTS/images/exparo.gif" alt="" /></a>
    <!-- menuIt : _Account Maintenance -->
    <a href="/IPTS/businessSummary.do?method=New" title="_Account Maintenance" >_Account Maintenance</a>
    <!-- menuIt : A_udit -->
    <a href="javascript:void(0)" title="A_udit" >A_udit</a>
    <!-- menuIt : _Business Map Maintenance -->
    <a href="/IPTS/ppt/mapBookAssignment.do" title="_Business Map Maintenance" >_Business Map Maintenance</a>
    <!-- menuIt : _Leasing -->
    <a href="javascript:void(0)" title="_Leasing" >_Leasing</a>
    <!-- menuIt : _Parent -->
    <a href="javascript:void(0)" title="_Parent" >_Parent<img src="/IPTS/images/exparo.gif" alt="" /></a>
    <!-- menuIt : _Parent Account Maintenance -->
    <a href="/IPTS/parentfindit.do" title="_Parent Account Maintenance" >_Parent Account Maintenance</a>
    </ul> <!-- ends _Parent -->
    ************************************************** *********
    "_Parent Account Maintenance" is the menu title that is giving me the problem.
    Is there a different approach I could use that would force QTP to click this menu item either using DOM or the API?????
    Any help is appreciated. Any more info needed let me know.
    Thanks people.
    Please view attachment - menu circled in red is the menu item I am having trouble with. Its the only menu item nested so deep. All others work fine.
    Attached Images Attached Images



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

vBulletin Optimisation provided by vB Optimise v2.6.0 Beta 4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.0.9 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Questions / Answers Form provided by vBAnswers (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominatevBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 11:04 PM.

Copyright BetaSoft Inc.