SPONSORS:






User Tag List

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

    porting a script that was written for IE 5.0 to IE5.5 DOM

    I am trying to port my current script that runs fine with IE 5.01 to IE 5.5 Dom. Apparently all I need to do is to change the window declaration so that the all object references are correct. This works fine except for some window declaration where objects of that window are not recognized in the same hierarchical structure as in IE 5.0. For example:

    This is the declaration captured in IE 5.0:
    [-] window BrowserChild CQOSEditCNode
    [ ] tag "CQOS WebPage"
    [ ] parent Browser
    [-] BrowserChild EditCNode
    [ ] tag "CQOS WebPage - Microsoft Internet Explorer[1]"
    [+] HtmlImage JavascriptCallHelp20
    [-] multitag "javascript:callHelp%20();"
    [ ] "#1"
    [ ] "$javascript:callHelp%20();"
    [+] HtmlHeading EditCNode
    [ ] tag "Configure cNode"
    [+] HtmlListBox HtmlListBox1
    [ ] tag "#1"
    [+] HtmlImage JavascriptGoFirst
    [+] multitag "javascript:goFirst()"
    [ ] "#2"
    [ ] "$javascript:goFirst()"
    [+] HtmlImage JavascriptGoPrevious1
    [+] multitag "javascript:goPrevious(1)"
    [ ] "#3"
    [ ] "$javascript:goPrevious(1)"
    [+] HtmlImage JavascriptGoNext1
    [+] multitag "javascript:goNext(1)"
    [ ] "#4"
    [ ] "$javascript:goNext(1)"
    [+] HtmlImage JavascriptGoLast
    [+] multitag "javascript:goLast()"
    [ ] "#5"
    [ ] "$javascript:goLast()"
    [+] HtmlPushButton Add
    [ ] // tag "Add"
    [-] multitag "Add"
    [ ] "#1"
    [ ] "$NodeAddButton"
    [ ]
    [+] HtmlPushButton Modify
    [ ] tag "Modify"
    [+] HtmlPushButton Delete
    [ ] tag "Delete"
    [+] HtmlPushButton Close
    [ ] tag "Close"
    [+] HtmlPushButton Events
    [ ] tag "Events"
    [ ]


    and this is the declaration captured in IE 5.5 with dom:
    [-] window BrowserChild CQOSEditCNode
    [ ] tag "CQOS WebPage"
    [ ] parent Browser
    [-] BrowserChild CQOSWebPageMicrosoftInter2
    [ ] tag "CQOS WebPage - Microsoft Internet Explorer[1]"
    [+] HtmlMeta ContentType
    [-] multitag "Content-Type"
    [ ] "#1"
    [ ] "$text?html; charset=iso-8859-1"
    [+] HtmlMeta Expires
    [-] multitag "Expires"
    [ ] "#2"
    [ ] "$0"
    [-] HtmlTable HtmlTable1
    [ ] tag "#1"
    [-] HtmlColumn ConfigureCNode
    [ ] tag "Configure cNode"
    [+] HtmlText ConfigureCNode3
    [ ] tag "Configure cNode"
    [+] HtmlLink ConfigureCNode1
    [+] multitag "Configure cNode[1]"
    [ ] "#1"
    [ ] "$javascript:callHelp%20();"
    [+] HtmlImage ConfigureCNode4
    [+] multitag "Configure cNode"
    [ ] "#1"
    [ ] "$http:??localhost?CQOS?images?help.gif"
    [+] HtmlListBox ConfigureCNode5
    [+] multitag "Configure cNode"
    [ ] "#1"
    [ ] "$NodeName"
    [+] HtmlLink ConfigureCNode2
    [+] multitag "Configure cNode[2]"
    [ ] "#2"
    [ ] "$javascript:goFirst()"
    [+] HtmlImage FirstPage
    [+] multitag "First Page"
    [ ] "#2"
    [ ] "$http:??localhost?CQOS?images?first.png"
    [+] HtmlLink JavascriptGoPrevious1
    [+] multitag "#3"
    [ ] "$javascript:goPrevious(1)"
    [+] HtmlImage PreviousPage
    [+] multitag "Previous Page"
    [ ] "#3"
    [ ] "$http:??localhost?CQOS?images?prev.png"
    [+] HtmlLink JavascriptGoNext1
    [+] multitag "#4"
    [ ] "$javascript:goNext(1)"
    [+] HtmlImage NextPage
    [+] multitag "Next Page"
    [ ] "#4"
    [ ] "$http:??localhost?CQOS?images?next.png"
    [+] HtmlLink JavascriptGoLast
    [+] multitag "#5"
    [ ] "$javascript:goLast()"
    [+] HtmlImage LastPage
    [+] multitag "Last Page"
    [ ] "#5"
    [ ] "$http:??localhost?CQOS?images?last.png"
    [+] HtmlPushButton Add
    [-] multitag "Add"
    [ ] "#1"
    [ ] "$NodeAddButton"
    [+] HtmlPushButton Modify
    [+] multitag "Modify"
    [ ] "#2"
    [ ] "$NodeModButton"
    [+] HtmlPushButton Delete
    [+] multitag "Delete"
    [ ] "#3"
    [ ] "$NodeDeleteButton[1]"
    [+] HtmlPushButton Events
    [+] multitag "Events"
    [ ] "#4"
    [ ] "$NodeDeleteButton[2]"
    [+] HtmlPushButton Advanced
    [+] multitag "Advanced"
    [ ] "#5"
    [ ] "$NodeAdvancedButton"
    [+] HtmlPushButton Close
    [+] multitag "Close"
    [ ] "#6"
    [ ] "$NodeCloseButton"

    For example note that the Add button on this page would be references in this way under IE 5.0: CQOSEditCnode.EditCNode.Add
    and for IE 5.5: CQOSEditCnode.CQOSWebPageMicrosoftInter2.HtmlTable 1.ConfigureCNode.Add

    If the reference to the Add button in IE 5.5 would be something like this: CQOSEditCnode.ConfigureCNode.Add
    ,then I can just change the appropriate tag and my script will be able to reference the Add button correcctly. However, since the the Add button is not recognized at the same depth I can't do a simple tag modification to make my script compatible with IE 5.5.

    What's the best work around to this problem.
    Konrad Nau
    Software Test Automation Specialist Intern
    CQOS INC.

  2. #2
    Member
    Join Date
    Dec 2000
    Location
    San Francisco, CA
    Posts
    51
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: porting a script that was written for IE 5.0 to IE5.5 DOM

    There is three ways (that I know) you can work around with this.

    1. Set your options not to recognize borderless tables. (this will only work if you have a borderless table that is now recognized using DOM)

    2. Using your previous window declaration change the tag and include the tags of the new recognized objects.

    [-] window BrowserChild CQOSEditCNode
    [ ] tag "CQOS WebPage"
    [ ] parent Browser
    [-] BrowserChild EditCNode
    [ ] tag "CQOS WebPage - Microsoft Internet Explorer[1]"
    [+] HtmlPushButton Add
    [ ] tag "[BrowserChild]CQOS WebPage - Microsoft Internet Explorer[1]/[HtmlTable]#1/[HtmlColumn]Configure cNode/[HtmlPushButton]Add"


    3. Using your new declaration and declaring windows that uses the same identifiers used by your scripts referencing the right objects.

    [-] window BrowserChild CQOSEditCNode
    [ ] tag "CQOS WebPage"
    [ ] parent Browser
    [-] BrowserChild CQOSWebPageMicrosoftInter2
    [ ] tag "CQOS WebPage - Microsoft Internet Explorer[1]"
    ...
    [-] HtmlTable HtmlTable1
    [ ] tag "#1"
    [-] HtmlColumn ConfigureCNode
    [ ] tag "Configure cNode"
    ...
    [+] HtmlPushButton Add
    [-] multitag "Add"
    [ ] "#1"

    [+] window Add = CQOSWebPageMicrosoftInter2.HtmlTable1.ConfigureCNo de.Add

    The choice is yours!


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

  3. #3
    Member
    Join Date
    Jan 2001
    Location
    Westborough, mA, USa
    Posts
    91
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: porting a script that was written for IE 5.0 to IE5.5 DOM

    Hi Knacqos

    What i am going to suggest maynot be a workaround but u would have the same scripts for both IE5 and IE5.5. You could have 2 include files and have a mapfile so that u could have the same scripts workin for both IE5 and IE5.5. This would make ur scripts less susceptible to changes in the GUI.

    Sandeep

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

  4. #4
    Member
    Join Date
    Sep 2000
    Posts
    48
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: porting a script that was written for IE 5.0 to IE5.5 DOM

    thanks all

    i went with kalabog's second solution and it works like a charm. All I need to do is change the tags in the include file and in theory no modification will be required for the test cases.

    ------------------
    Konrad Nau
    Software Test Automation Specialist
    CQOS INC.

    [This message has been edited by knaucqos (edited 04-09-2001).]
    Konrad Nau
    Software Test Automation Specialist Intern
    CQOS INC.

 

 

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 07:33 AM.

Copyright BetaSoft Inc.