SPONSORS:






User Tag List

Results 1 to 3 of 3
  1. #1
    Junior Member
    Join Date
    Oct 2001
    Posts
    14
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How can I get the contents of an ActiveX object?

    Hi All,
    I would like to know how can I get the contents of an ActiveX object?

    Note: This object contain some text, and numbers (integers) dynamically displayed by the web application.

    Here is what I have in my Frame.inc

    [-] window BrowserChild SampleApp
    [ ] tag "SampleApp"
    [ ]
    [ ] // The URL of this page
    [ ] const sLocation = "https://SampleApp/MainFrameset.html"
    [ ]
    [ ] // The login user name
    [ ] // const sUserName = ?
    [ ]
    [ ] // The login password
    [ ] // const sPassword = ?
    [ ]
    [ ] // The size of the browser window
    [ ] // const POINT BrowserSize = {600, 400}
    [ ]
    [ ] // Sets the browser font settings to the default
    [ ] // const bDefaultFont = TRUE
    [-] CustomWin OLEATMarketCtrl1
    [ ] msw tag "[OLEATMarketCtrl]#1"


    [-] winclass OLEATMarketCtrl : AnyWin
    [ ] tag "[OLEATMarketCtrl]"
    [ ]
    [ ] property DATETIME xDateTime alias "$DateTime"
    [ ] property PINTERFACE MarketDisplayOptions alias "$MarketDisplayOptions"
    [ ] property INT iParentOwnerHeight alias "$ParentOwnerHeight"
    [ ] property INT iParentOwnerWidth alias "$ParentOwnerWidth"
    [ ] property INT iParentWindowHeight alias "$ParentWindowHeight"
    [ ] property INT iParentWindowLeft alias "$ParentWindowLeft"
    [ ] property INT iParentWindowTop alias "$ParentWindowTop"
    [ ] property INT iParentWindowWidth alias "$ParentWindowWidth"
    [ ] property INT iWindow alias "$Window"
    [ ]
    [ ] obj VOID _SetFilter (PINTERFACE pVal)
    [ ] obj VOID _SetPoster (PINTERFACE pVal)
    [ ] obj VOID _SetRedraw (BOOLEAN val)
    [ ] obj VOID _SetTZLabel (STRING theLabel)
    [ ] obj VOID _SetTZOffset (INT theOffset)
    [ ] obj VOID _SetUser (PINTERFACE pVal)
    [ ] obj VOID AddOrder (PINTERFACE pVal)
    [ ] obj VOID AddSummaryItem (PINTERFACE pVal)
    [ ] obj VOID DisputeOrder (INT pVal)
    [ ] obj VOID RedrawCredit ()
    [ ] obj VOID Reset ()
    [ ] obj VOID Resize (INT Width, INT height)
    Note: this is a web application running in IE6 , and I have used both SilkTest 6 & 5.5

    Thanks.


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

  2. #2
    Member
    Join Date
    May 2003
    Location
    CA
    Posts
    45
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How can I get the contents of an ActiveX object?

    I do not think, there is direct way of getting contents from the active-X object. I would suggest u to extend a new class for active-X control and then add a new method for getting the contents namely (_GetContents) using TypeKeys and the Clipboard.

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

  3. #3
    Junior Member
    Join Date
    Jun 2002
    Location
    chennai,tamilnadu,india
    Posts
    6
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How can I get the contents of an ActiveX object?

    Extend the ActiveXForm class in the following way

    winclass ActiveXForm:AnyWin
    obj STRING PrintForm ()

    if u call on ActiveX object this PrintForm method it will return all the activeX contents in the Base64 notation.
    you have write a custom class that will decode from Base64 notation.

    the jave code for the base64 is attached , jar this javacode and place in the jre/lib/ext folder.

    get the contents decoded trough InvokeJava method


    ------------------
    p.srinivasulu
    p.srinivasulu

 

 

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:24 AM.

Copyright BetaSoft Inc.