SPONSORS:






User Tag List

Results 1 to 3 of 3
  1. #1
    Senior Member
    Join Date
    Sep 2000
    Posts
    159
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    JFCStaticText () of Java Dialog Box

    testcase Test1 ()
    [ ]
    [ ] LIST OF STRING lsGetContents,
    [ ] ANYTYPE gettext

    [-] recording
    Administrator.JavaDialogBox("Information").SetActi ve ()

    [ ] lsGetContents = Administrator.JavaDialogBox("Information").GetCont ents ()

    [ ] gettext = Administrator.JavaDialogBox("Information").JavaJFC StaticText ()

    When I debug the values are:


    lsGetContents =
    {"[JavaJFCStaticText]The policy parameters were saved successfully.", "[JavaJFCImage]#1", "[JavaJFCPushButton]OK"}

    gettext = Administrator.JavaDialogBox("Information").JavaJFC StaticText("")


    I'm not sure why the JavaJFCStaticText does not return the "success..." string.

    How can I get the Static Text of the Java Dialog Box message directly?


  2. #2
    Senior Member
    Join Date
    Jun 2000
    Location
    Waltham, MA
    Posts
    107
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: JFCStaticText () of Java Dialog Box

    Raul,

    First, JavaJFCStaticText is a class of window, not a method, and won't ever return anything.

    Second, you already have the static text in your lsGetContents. Notice the "[JavaJFCStaticText]The policy parameters were saved successfully."

    That is the static text for the DialogBox. to pull that out of the list, simply reference the first item the list like:
    gettext = lsGetContents[1]
    print (gettext)

    Hope this helps!
    BostonSilk

  3. #3
    Member
    Join Date
    Oct 2000
    Location
    Bothell, WA, USA
    Posts
    54
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: JFCStaticText () of Java Dialog Box

    Use the GetText method

    gettext = Administrator.JavaDialogBox("Information").JavaJFC StaticText("#1").GetText ()

    assuming the tag for your JavaJFCStaticText control is "#1"




    [This message has been edited by dano (edited 02-15-2001).]

 

 

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 09:02 PM.

Copyright BetaSoft Inc.