SPONSORS:






User Tag List

Results 1 to 4 of 4
  1. #1
    Senior Member
    Join Date
    Jan 2002
    Location
    Des Moines, Iowa
    Posts
    289
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Interesting Behavior

    I have an HTML page that has 3 nested tables.

    The first two are hidden. The third (deepest) is a visible table that has checkboxes in it.

    I can see and check those checkboxes when dealing with a static page. But as soon as the page changes (i.e, I do a new selection.) I get this error out of the check method.

    [ ] *** Error: Window '/[MainWin]Front Read Selection - Microsoft Internet Explorer provided by NCS IC IT Services/[BrowserChild]Front Read Selection/[HtmlTable]Front Reading/[HtmlColumn]Project...' is not exposed

    Now here comes the interesting part. If I do Record Window Identifiers on this new page and just run the mouse over several of the objects on the page, the code will magically start working again until the next new instance of the page is displayed.

    I have tried numerous ways to get at it including a (SendMessage from user32.dll), and changing the 'borderless table option' with this same result every time.

    The code and HTML I am using can be found on a earlier post.
    http://www.qaforums.com/Forum1/HTML/003041.html

    I am using 5.5 sp1, Browser I.E. 5.01 sp2 I have to stick with this version of the browser for now.

    Any help at all would be greatly appreciated.



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

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

    Re: Interesting Behavior

    Did you try

    1. BOOLEAN bVerify = Agent.SetOption (OPT_VERIFY_EXPOSED, FALSE)
    2. Do the Check()
    3. Agent.SetOption(OPT_VERIFY_EXPOSED, bVerify) // to restore to whatever it was before

    There may be more to your problem in that, but that's for starters.



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

  3. #3
    Senior Member
    Join Date
    Jan 2002
    Location
    Des Moines, Iowa
    Posts
    289
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Interesting Behavior

    Thanks for the suggestion Agroves.

    Changed the behavior but not for the better it seems. In my inc file I have the first checkbox defined. The remainder I dymanically get at with a getchildren function. The number of check boxes is related to the number of records returned in the query. If we even have the table (Some records found matching the criteria) we will have one.

    With your suggestion I can now click on the "defined" checkbox. But, the remainder still have a problem.

    This is the results file. I print the count of rows and the list of window contents before I act on the controls

    [ ] 20
    [ ] FrontReadSelection.Network.ProjectHeader.Selection Criteria.SelCol.Sel
    [ ] FrontReadSelection.Network.ProjectHeader.Selection Criteria.SelCol.HtmlCheckBox("07200384540190200103 |#2|$checkBox[2]")
    [ ] FrontReadSelection.Network.ProjectHeader.Selection Criteria.SelCol.HtmlCheckBox("07200384550190200103 |#3|$checkBox[3]")
    [ ] FrontReadSelection.Network.ProjectHeader.Selection Criteria.SelCol.HtmlCheckBox("07200384560190200103 |#4|$checkBox[4]")
    [ ] FrontReadSelection.Network.ProjectHeader.Selection Criteria.SelCol.HtmlCheckBox("07200384570190200103 |#5|$checkBox[5]")
    [ ] FrontReadSelection.Network.ProjectHeader.Selection Criteria.SelCol.HtmlCheckBox("07200384580190200103 |#6|$checkBox[6]")
    [ ] FrontReadSelection.Network.ProjectHeader.Selection Criteria.SelCol.HtmlCheckBox("07200384590190200103 |#7|$checkBox[7]")
    [ ] FrontReadSelection.Network.ProjectHeader.Selection Criteria.SelCol.HtmlCheckBox("07200384600190200103 |#8|$checkBox[8]")
    [ ] FrontReadSelection.Network.ProjectHeader.Selection Criteria.SelCol.HtmlCheckBox("07200384610190200103 |#9|$checkBox[9]")
    [ ] FrontReadSelection.Network.ProjectHeader.Selection Criteria.SelCol.HtmlCheckBox("07200384650190200103 |#10|$checkBox[10]")
    [ ] FrontReadSelection.Network.ProjectHeader.Selection Criteria.SelCol.HtmlCheckBox("07200384660190200103 |#11|$checkBox[11]")
    [ ] FrontReadSelection.Network.ProjectHeader.Selection Criteria.SelCol.HtmlCheckBox("07200384670190200103 |#12|$checkBox[12]")
    [ ] FrontReadSelection.Network.ProjectHeader.Selection Criteria.SelCol.HtmlCheckBox("07200384680190200103 |#13|$checkBox[13]")
    [ ] FrontReadSelection.Network.ProjectHeader.Selection Criteria.SelCol.HtmlCheckBox("07200384690190200103 |#14|$checkBox[14]")
    [ ] FrontReadSelection.Network.ProjectHeader.Selection Criteria.SelCol.HtmlCheckBox("07200384700190200103 |#15|$checkBox[15]")
    [ ] FrontReadSelection.Network.ProjectHeader.Selection Criteria.SelCol.HtmlCheckBox("07200384710190200103 |#16|$checkBox[16]")
    [ ] FrontReadSelection.Network.ProjectHeader.Selection Criteria.SelCol.HtmlCheckBox("07200384720190200103 |#17|$checkBox[17]")
    [ ] *** Error: Control is not responding
    [ ] Occurred in Check
    [ ] Called from testFrontReading at testfrontreading.t(58)


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

  4. #4
    Senior Member
    Join Date
    Jan 2002
    Location
    Des Moines, Iowa
    Posts
    289
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Interesting Behavior

    By george I think I have it. I looked up the error message for a control not responding. I found that I have another agent option that can turn that verification off.

    BOOLEAN bVerify2 = Agent.SetOption(OPT_VERIFY_RESPONDING, FALSE)

    Is the code I added to Agroves other set option code. Now it works. Well Kinda anyway. Sometimes it doesn't really check the box but what the heck beggers can't be choosers. lol

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

 

 

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:13 PM.

Copyright BetaSoft Inc.