SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 6 of 6
  1. #1
    Member
    Join Date
    May 2009
    Posts
    34
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    ClickItem() command can not be performed

    Hi,

    1)Sometimes I get the Error message : Cannot perform the ClickItem operation

    I can not figure out why, cause in most cases (+/- 90 %) the error message does not appear while I use the same lines of code.

    new_page = getSysProcess().Page("http://"+getServer()+"/gouw7/wizard/woz/opvoeren/deelobject_opvoeren.seam?cid=*");

    new_page.Panel(2).Panel(1).Form("wizardForm").Pane l("wizardForm_wizardPanel").Panel("wizardForm_wiza rdPanel_body").Panel("wizardForm_deelobjectopvoere nPanel").Panel("wizardForm_deelobjectopvoerenPanel _body").Table("wizardForm_deelobjectopvoerenPanelG rid1").Cell(0, 0).Panel("wizardForm_bagObjectTypeDecorate").Panel (0).Select("wizardForm_bagObjectTypeDecorate_bagTy peSelector").ClickItem(bagObjecttype);

    2) Textbox not filled in with data I used as parameter.
    This occurs sometimes and can happen in different textboxes.

    E.g. : Parameter gemCode = "NWD01";
    Testcomplete fills the field with NW01.

    tabel = new_page.Panel(2).Panel(1).Form("wizardForm").Pane l("wizardForm_wizardPanel").Panel("wizardForm_wiza rdPanel_body").Panel("wizardForm_perceelkoppelPane l").Panel("wizardForm_perceelkoppelPanel_body").Pa nel("wizardForm_perceelkoppelTogglePanel").Panel(0 ).Table("wizardForm_perceelPanelGrid");

    if (!isLeeg(gemCode)){
    textbox =
    tabel.Cell(0,1).Textbox"wizardForm_kadgemcodeInput ");
    textbox.Click();
    textbox.Keys(gemCode);
    }

    Any suggestions ?

    Regards,
    Kim Mercx

  2. #2
    Senior Member
    Join Date
    Jul 2008
    Posts
    1,049
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: ClickItem() command can not be performed

    Hi Kim,

    [ QUOTE ]

    Cannot perform the ClickItem operation


    [/ QUOTE ]
    I suppose you are using TestComplete 7. If so, first of all, please update to the latest version of TestComplete (v. 7.10) and check whether the problem persists in this version. If it does, please let me know what browser you are using in your tests, whether the problem can be reproduced with another browser. Also, tell me the value of the outerHTML property of the problematic control and the value of the "bagObjecttype" variable which is passed to the ClickItem method. This will help us reproduce the problem on our side.

    [ QUOTE ]

    Parameter gemCode = "NWD01";
    Testcomplete fills the field with NW01.


    [/ QUOTE ]
    Please try installing the update mentioned in the "System Requirements" help topic and check whether this solves the problem.

    BTW, I recommend that you use the native "value" property to set the problematic control's text instead of typing the text as this approach is more reliable.
    Regards,
    Allen - SmartBear Support

  3. #3
    Member
    Join Date
    May 2009
    Posts
    34
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: ClickItem() command can not be performed

    Hi Allen,

    - The ClickItem command works fine when I make use of
    TestComplete version 7.10


    - Using the "value" property to set the text seems to solve
    the problem

    Regards.
    Kim

  4. #4
    Senior Member
    Join Date
    Jul 2008
    Posts
    1,049
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: ClickItem() command can not be performed

    Hi Kim,

    I am glad to hear that your problems are solved. Thank you for the information.
    Regards,
    Allen - SmartBear Support

  5. #5
    Member
    Join Date
    May 2009
    Posts
    34
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: ClickItem() command can not be performed

    Hi Allen,

    In the Object Browser are 2 Internet Exlorer processes displayed (using Windows Vista).

    Each process contains the page 'StartScherm'.

    The ClickItem command works only in the second process and
    NOT in the first one.

    Regards,
    Kim

  6. #6
    Senior Member
    Join Date
    Jul 2008
    Posts
    1,049
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: ClickItem() command can not be performed

    Hi Kim,

    That's the peculiarity of IE 8 - the page is present in both processes, but visual controls are created only in one process (and therefore, TestComplete must work with this process). Currently, we do not have an elegant solution for this issue. However, we provided a workaround in the following thread:
    http://www.sqaforums.com/showflat.ph...;Number=568679
    Regards,
    Allen - SmartBear Support

 

 

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 11.54%
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 08:00 AM.

Copyright BetaSoft Inc.