SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 4 of 4
  1. #1
    Junior Member
    Join Date
    Sep 2009
    Posts
    7
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Problem with combo box

    Hi

    I have a problem with combo-box [img]/images/graemlins/frown.gif[/img]
    Code looks like this :

    function Search(itm1,itm2,itm3,itm4,itm5){

    var cmb1,cmb2,cmb3,cmb4,cmb5;

    cmb1 = Sys.Process("IEXPLORE").Page("URL")...Table(0).Cel l(1, 0).Select("cmbVT");
    cmb1.ClickItem(itm1);
    aqUtils.Delay(1000);
    cmb2 = Sys.Process("IEXPLORE").Page("URL")...Select("cmbM ");
    cmb2.ClickItem(itm2);
    aqUtils.Delay(1000);
    cmb3 = Sys.Process("IEXPLORE").Page("URL")...Select("cmbM od");
    cmb3.ClickItem(itm3);
    aqUtils.Delay(1000);
    cmb4 = Sys.Process("IEXPLORE").Page("URL")...Select("cmbV eh");
    cmb4.ClickItem(itm4);
    aqUtils.Delay(1000);
    cmb5 = Sys.Process("IEXPLORE")...Select("cmbGenerics");
    cmb5.ClickItem(itm5);
    aqUtils.Delay(1000);
    }

    It should select specified items from specifed combos, and it works OK when I start only Search function , but if I start Search function in a sequence after some other functions it wont work

    example

    function Main()
    {
    try
    {
    TestedApps.IEXPLORE.Run();
    Logovanje("URL","username","pass");
    OpenTab(3);
    aqUtils.Delay(5000);
    Search();
    }
    catch(exception)
    {
    Log.Error("Exception", exception.description);
    }
    }

    This fails when Search function comes in order for execution
    and log mesage said that combo cannot be found ...

    Any help please ... thanks

  2. #2
    Senior Member
    Join Date
    Jun 2009
    Posts
    162
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Problem with combo box


    Hi Cukovac,

    Just trying to debug this, try just one combo first :

    function Search(itm1){

    var cmb1;

    cmb1 = Sys.Process("IEXPLORE").Page("URL")...Table(0).Cel l(1, 0).Select("cmbVT");
    cmb1.ClickItem(itm1);
    }

    * Now try running it after other function calls. Do you still get the problem ?


    dotTRM

  3. #3
    Senior Member
    Join Date
    Aug 2006
    Posts
    1,920
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Problem with combo box

    Hi,

    Try calling the Page.Wait method before addressing the page's elements. It looks like the page is not loaded completely when you're trying to obtain your combo box.
    Jared - AQA Support

  4. #4
    Junior Member
    Join Date
    Sep 2009
    Posts
    7
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Problem with combo box

    hi Guys

    Thanks for proposals but I already solve this problem successfully .

    Problem was in a focus of the table that contains combos , just s simple simulation of click on that table brought back a focus and combos works just fine ...

    Regards
    [img]/images/graemlins/smile.gif[/img]

 

 

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.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 10.71%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin 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 09:46 PM.

Copyright BetaSoft Inc.