SPONSORS:






User Tag List

Results 1 to 7 of 7
  1. #1
    Senior Member
    Join Date
    Nov 2001
    Location
    UK, Oxford
    Posts
    150
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    instantiating textfields on the fly

    In my java app, I have a combobox, with three choices:
    delete, insert, edit.
    Depending on which on you choose, 1 to 3
    textfields appear in a line
    However, when running a testcase, after ST has selected one of the values from the combobox, nothing appears.
    I have recorded the declarations for these textfields, and am able to test values in them when I open the window with them already
    there, it is just that ST doesn't seem able to make them appear on the fly.
    Any ideas...?

    ------------------
    Tempus fugit, Carpe Diem, et al

  2. #2
    Senior Member
    Join Date
    Jul 2001
    Location
    Elizabeth, CO, USA
    Posts
    653
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: instantiating textfields on the fly

    The way SilkTest selects things from a ComboBox doesn't trigger the application to think that anything has changed. Might want to do a TypeKeys ("<Space>") on the ComboBox after doing the Select and see if that works.

    - Dave


    ------------------
    Amelior Technology
    dreed@ameliortech.com
    WaltzingRhino.com
    A concerned Borland customer, a fly in the ointment, a wrench in the works.

  3. #3
    Senior Member
    Join Date
    Nov 2001
    Location
    UK, Oxford
    Posts
    150
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: instantiating textfields on the fly

    Unfortunately that doesn't do it. Will experiment further, but thank you anyway.

    Tried:
    blah.blah.Comboboxthing.TypeKeys("")
    and
    blah.blah.Comboboxthing.TypeKeys("<Enter>")
    etc..

    ------------------
    Tempus fugit, Carpe Diem, et al

  4. #4
    Senior Member
    Join Date
    Nov 2001
    Location
    UK, Oxford
    Posts
    150
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: instantiating textfields on the fly

    Whoops... I repeated myself,
    it should have read:

    blah.blah.Comboboxthing.TypeKeys("")
    and
    blah.blah.Comboboxthing.TypeKeys("<Enter>")
    etc

    ------------------
    Tempus fugit, Carpe Diem, et al

  5. #5
    Senior Member
    Join Date
    Nov 2001
    Location
    UK, Oxford
    Posts
    150
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: instantiating textfields on the fly

    OK, there appears to be a problem typing
    lessthan and greater than. Obviously, it is being mistaken for a tag
    I'll try again with entities:
    blah.blah.Comboboxthing.TypeKeys("&lt;Enter&gt;")



    ------------------
    Tempus fugit, Carpe Diem, et al

  6. #6
    Senior Member
    Join Date
    Nov 2001
    Location
    UK, Oxford
    Posts
    150
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: instantiating textfields on the fly

    OK, that worked...
    Dave, I wonder if you meant Typekeys("")
    or something else which got mistaken for a tag...?

    ------------------
    Tempus fugit, Carpe Diem, et al

  7. #7
    Senior Member
    Join Date
    Jul 2001
    Location
    Elizabeth, CO, USA
    Posts
    653
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: instantiating textfields on the fly

    Yeah, sorry. Forgot to use the HTML codes. What I meant was TypeKeys ("&lt;Space&gt")

    - Dave


    ------------------
    Amelior Technology
    dreed@ameliortech.com
    WaltzingRhino.com
    A concerned Borland customer, a fly in the ointment, a wrench in the works.

 

 

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 04:18 PM.

Copyright BetaSoft Inc.