SPONSORS:






User Tag List

Results 1 to 10 of 10
  1. #1
    Senior Member
    Join Date
    Oct 2001
    Location
    Worcester
    Posts
    133
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Defining links not part of browser application

    Hello Everyone,

    I our Java application we have a window which SilkTest recognized as a TextField. However this window contains links, which if you click bring up a another window.

    EX..
    Order Status _is one of_ where is one of is underlined. If you click _is one of_ you get another window.

    Problem..
    I need help defining the links. I have tried to redefine the TextField to a browerchild and other objects but i am stuck, i cannot figure out how to define the links so i will know where to click..

    Any help will be greatly helpfull.

    The text on the window is done in html.

    Thanks in advance
    Tim


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


    [This message has been edited by tfaron (edited 06-05-2002).]

    [This message has been edited by tfaron (edited 06-05-2002).]

  2. #2
    Senior Member
    Join Date
    Oct 2001
    Location
    Worcester
    Posts
    133
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Defining links not part of browser application

    Added screen shot of window I am having a problem with. The bottom half of the window has links which i cannot figure out how to click, the window is recognized as a JFCTextField.

    I have added screen shot and results when i get GetContents() as defined as TextField
    Thanks

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


    [This message has been edited by tfaron (edited 06-05-2002).]

  3. #3
    Senior Member
    Join Date
    Dec 2001
    Location
    San Jose, CA
    Posts
    102
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Defining links not part of browser application

    Why don't you post a screen-shot of this object? We might come out with some idea.

    Michael

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

  4. #4
    Senior Member
    Join Date
    Oct 2001
    Location
    Worcester
    Posts
    133
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Defining links not part of browser application

    is it possible to define HtlmLinks defined in a JFCTextField? I am really stuck here, hopefully someone can help with the attachments i added
    JavaJFCTextField Text
    -->tag " "
    -->HtmlLink Link
    --->tag " "

    I just need to click the link
    The problem is i cannot figure out what the link is, i attached the getcontents from the textfield but any link i try does not work

    Thanks


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


    [This message has been edited by tfaron (edited 06-06-2002).]

    [This message has been edited by tfaron (edited 06-06-2002).]

  5. #5
    Senior Member
    Join Date
    Jul 1999
    Location
    Bellingham, WA USA
    Posts
    1,323
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Defining links not part of browser application

    Does silk recognize those links as anything at all?

    Can you do a GetText or GetContents on that textfield?

    If so, can you then parse for the text you want and manipulate it that way? Possibly even get a RECT on it? Depending on what it comes back as (in Silk's view), what methods are valid for it? Select? Pick? Click? etc.

    Sorry for the non-specific response, but I'm just brainstorming publicly here...

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

  6. #6
    Senior Member
    Join Date
    Oct 2001
    Location
    Worcester
    Posts
    133
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Defining links not part of browser application

    Silk just recognized the the bottom of the window as a JavaJFCTextField (see first attachment). Then when i do GetContents() it returns some html code (see second attachment) .. Silk does not recognize the links so i don't know how to click them or define them, i tried using some of the info used from getcontents() but cannot figure it out. All i need to do is locate the links and click them. I tried to define the HtmlLinks under JavaJFCTextField but no luck

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

  7. #7
    Senior Member
    Join Date
    Dec 2001
    Location
    San Jose, CA
    Posts
    102
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Defining links not part of browser application

    Can you tab into the object?
    Is there anything that SilkTest sees it
    as correct object such as HtmlText, HtmlPopupList, or etc.

    Use it as benchmark -- like click on it.
    Then, tab into the object that you want to
    click on.
    Once you focus the object, just do typekey "Enter".

    Does it help?

    Michael

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

  8. #8
    Senior Member
    Join Date
    Oct 2001
    Location
    Worcester
    Posts
    133
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Defining links not part of browser application

    cannot get focus on the window, you can just click the links. I need to figure out how to get SilkTest to recognize the html code in the TextField.. Maybe by redefining it as a BlotterPage or something.

    Any other ideas will be helpfull..
    Thanks everyone

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

  9. #9
    Senior Member
    Join Date
    Jul 1999
    Location
    Burlingame CA 94010
    Posts
    502
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Defining links not part of browser application

    Hi,

    Can you post the code or a screen shot? Your document seemed to be empty.



    ------------------
    John W Green
    jwgreen@automationexpertise.com
    http://www.automationexpertise.com

  10. #10
    Senior Member
    Join Date
    Dec 2001
    Location
    San Jose, CA
    Posts
    102
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Defining links not part of browser application

    Tfaron,

    SilkTest sees your Java application as TextField without dialogbox?

    Can't you SetActive() if it's dialogbox?

    Michael


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

 

 

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 12:54 PM.

Copyright BetaSoft Inc.