SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Jan 2000
    Posts
    92
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    General method for menu selection

    Hi,
    I am new to RFT and trying to write a generic method to select menu items.

    I am getting error at this line :
    source_window.click(atPath(menu));

    Is there any other way to define this ?

    Here is the code :
    public void menuSelect (GuiTestObject source_window ,GuiTestObject launch_window, String menu )
    {

    source_window.click();
    source_window.click(atPath(menu));

    launch_window.waitForExistence();
    if (!launch_window.exists()) {
    logInfo("Launch successful");
    }
    logError("Unable to launch window" + launch_window);
    }

  2. #2
    Member
    Join Date
    Jan 2000
    Posts
    92
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: General method for menu selection

    I am sure there must be a way to write a generic menu selection method. DOes anyone have a code snippet which could give me some idea.

    Thanks.

  3. #3
    Junior Member
    Join Date
    Oct 2003
    Location
    Mumbai
    Posts
    7
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: General method for menu selection

    Hi dkas,
    Try and click on the Document Object i.e
    Document().click() before your source_window.click() command.
    Your code should be able to work then as I had faced a similar issue and solved it.

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.40 (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 11.54%
vBulletin Optimisation provided by vB Optimise v2.7.1 (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.3.0 (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 08:40 PM.

Copyright BetaSoft Inc.