SPONSORS:






User Tag List

Results 1 to 7 of 7
  1. #1
    Guest

    *** Error: Window \'/[DialogBox]Logon Application/[CheckBox]B2B\' is not exposed

    Hi,

    I hope some help me.

    The following error occurred when I tried to Check the Checkbox on window.

    "*** Error: Window '/[DialogBox]Logon Application/[CheckBox]B2B' is not exposed"

    I never had this proble earlier and here is the windows declarations:

    [ ] const wMainWindow = LogonApplication
    [ ]
    [-] window MainWin LogonApplication
    [ ] tag "[DialogBox]Logon Application"
    [ ]
    [ ] // The working directory of the application when it is invoked
    [ ] const sDir = "C:\HOMEBASE"
    [ ]
    [ ] // The command line used to invoke the application
    [ ] const sCmdLine = "C:\HOMEBASE\DBSlogon.exe"
    [ ]
    [ ] // The first window to appear when the application is invoked
    [ ] // const wStartup = ?
    [ ]
    [ ] // The list of windows the recovery system is to leave open
    [ ] // const lwLeaveOpen = {?}
    [ ]
    [+] CustomWin BitMap1
    [ ] msw tag "[BitMap]#1"
    [+] TextField UserID
    [ ] tag "#1"
    [+] TextField ZWire
    [ ] tag "#2"
    [+] TextField OperatorCodeTLA
    [ ] tag "#3"
    [+] TextField AspectExtension
    [ ] tag "#4"
    [+] RadioList LogOnOff // EnterYourUserInformationAn1
    [ ] tag "#1"
    [+] CheckBox B2B
    [ ] tag "#1"
    [+] CheckBox BrokerageFBSIFTPS
    [ ] tag "#3"
    [+] CheckBox BrokSecondOrderSys
    [ ] tag "#5"
    [+] CheckBox TaxLotAccounting
    [ ] tag "#7"
    [+] CheckBox AMMO
    [ ] tag "#9"
    [+] CheckBox FidelityFirstCA
    [ ] tag "#13"
    [+] CheckBox MarketingProspect
    [ ] tag "#15"
    [+] CheckBox Pegashares
    [ ] tag "#2"
    [+] CheckBox Service
    [ ] tag "#4"
    [+] CheckBox ShareholderSAS
    [ ] tag "#6"
    [+] CheckBox SQLServer
    [ ] tag "#8"
    [+] CheckBox PinAdministration
    [ ] tag "#10"
    [+] CheckBox Symphony
    [ ] tag "#12"
    [+] CheckBox XTRAC
    [ ] tag "#14"
    [+] PushButton SaveSettings
    [ ] tag "#1"
    [+] PushButton Logon
    [ ] tag "#2"
    [+] PushButton Cancel
    [ ] tag "#3"
    [+] StaticText UserIDText
    [ ] tag "#2"
    [+] StaticText ZWireText
    [ ] tag "#3"
    [+] StaticText OperatorCodeTLAText
    [ ] tag "#4"
    [+] StaticText AspectExtensionText
    [ ] tag "#5"
    [+] StaticText EnterYourUserInformationAn2
    [ ] tag "#1"
    [+] CheckBox CACTUS
    [ ] tag "#11"
    [+] window MessageBoxClass MessageBox
    [ ] tag "~ActiveApp/[DialogBox]$MessageBox"
    [+] PushButton OK
    [ ] tag "OK"
    [+] PushButton Cancel
    [ ] tag "Cancel"
    [+] PushButton Yes
    [ ] tag "Yes"
    [+] PushButton No
    [ ] tag "No"
    [+] StaticText Message
    [ ] motif tag "#2"
    [ ] tag "#1"
    [ ]
    [ ]


    and my .t file is as follows:

    [-] testcase abc() appstate none
    [ ] HBT.SetActive ()
    [ ] HBT.AtlAxWin1.ShellEmbedding1.ShellDocObjectView1. CustomWin("[Internet Explorer_Server]#1").Click (1, 181, 20)
    [ ] CustomWin("[Internet Explorer_Server]#1").Click (1, 55, 16)
    [ ]
    [ ] SLEEP(10)
    [ ] LogonApplication.SetActive ()
    [ ] LogonApplication.LogOnOff.Select ("Log On")
    [ ] LogonApplication.UserID.SetText ("A291623")
    [ ] LogonApplication.UserID.TypeKeys ("<Tab>")
    [ ] LogonApplication.ZWire.TypeKeys ("<Tab>")
    [ ] LogonApplication.OperatorCodeTLA.SetText ("A291623")
    [ ] LogonApplication.B2B.Check ()
    [ ] // LogonApplication.Logon.Click ()
    [ ] // OVHomeBase.SetActive ()
    [ ] // MessageBox.OK.Click ()


    Many thanks in advance.


    ------------------
    Satya

  2. #2
    Super Member
    Join Date
    Jul 1999
    Location
    Rancho Santa Margarita, CA
    Posts
    1,439
    Post Thanks / Like
    Mentioned
    4 Post(s)
    Tagged
    1 Thread(s)

    Re: *** Error: Window \'/[DialogBox]Logon Application/[CheckBox]B2B\' is not exposed

    Try:
    Agent.SetOption (OPT_VERIFY_EXPOSED, FALSE)
    or
    go to Options menu and select Agent...
    then go to the Verification tab and uncheck "Verify that windows are exposed"

  3. #3
    Senior Member
    Join Date
    Jan 2001
    Posts
    750
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: *** Error: Window \'/[DialogBox]Logon Application/[CheckBox]B2B\' is not exposed

    This error most likely refers to your control not been visible at runtime. In other words your control might be covered by another control(i.e.:drop downs..) or your control is not visually visible(can you see it).

    My philosophy is don't play with default options if you can. Check the in program help for some insight(it might get you some idea)

  4. #4
    Senior Member
    Join Date
    Nov 2000
    Location
    Bloomington, IL
    Posts
    142
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: *** Error: Window \'/[DialogBox]Logon Application/[CheckBox]B2B\' is not exposed

    If you can't see the object you are trying to use, then scroll the application down until the object is exposed and execute your code. I agree not to change the defaults (except maybe in the code) unless you have to.

  5. #5
    bjc
    bjc is offline
    Member
    Join Date
    Jan 2000
    Location
    CT
    Posts
    66
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: *** Error: Window \'/[DialogBox]Logon Application/[CheckBox]B2B\' is not exposed

    Check to see if the following agent options are set:

    Agent.SetOption (OPT_VERIFY_EXPOSED, TRUE)
    Agent.SetOption (OPT_SHOW_OUT_OF_VIEW, TRUE)
    Agent.SetOption (OPT_SCROLL_INTO_VIEW, TRUE)

    If you don't want to set them (ie: you want to keep your default settings), bind them in your code so that these values are only changed when your script runs.


  6. #6
    Junior Member
    Join Date
    Aug 2001
    Posts
    11
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: *** Error: Window \'/[DialogBox]Logon Application/[CheckBox]B2B\' is not exposed

    I am having a similar problem with trying to click on a command button and getting a "not exposed" error. It is just a timing issue that occurs sporadically as one window closes.

    I have a little function that waits in small increments until wObject.Exists() is true. This isn't catching it, so apparently at the instant that the code is executing the command button exists but is not yet exposed. I can insert a half second "Sleep" at that point but I hate the idea of always waiting that long if I don't need to.

    I don't know how to test for a control being exposed. The command button in question is always visible on it's form, you never have to scroll or hit tabs to see it. This problem occurs when I am closing another form and then immediately clicking on this button. I definitely do NOT want to change the agent options to resolve this.

    Any ideas? TIA.

    ------------------

  7. #7
    Senior Member
    Join Date
    Aug 1999
    Location
    Cambridge, UK
    Posts
    470
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: *** Error: Window \'/[DialogBox]Logon Application/[CheckBox]B2B\' is not exposed

    glynch: we have a similar problem with windows responding to .Exists() before they are ready to be used. We developed a function that waits in small increments until wObject.SetActive() succeeds without raising an exception - this might work for you also. Of course if you don't want to have to wait for half a second then this is not the solution for you, because when silktest raises an exception in SetActive() and you catch it with do...except, the process can take longer than half a second.

    ------------------

 

 

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 11:06 AM.

Copyright BetaSoft Inc.