SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 5 of 5
  1. #1
    Member
    Join Date
    May 2007
    Posts
    98
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)
    Total Downloaded
    0

    Cannot read text in javaeditbox

    This has been a long standing problem between our application and TestPartner. I am only now butting heads with it.
    In our custom Oracle application which uses java through an IE window, there is a popup alert window. This window displays text when there is something particular about the data you are viewing that should be highlighted.

    TP identifies this window with the following properties;
    Application - IEXPLORE.EXE
    Index - 1
    Type Name - JavaEditBox

    This is a modal window.
    I cannot capture the text in this window.
    I worked with Compuware on this issue sometime ago and was told this was a bug and there was no fix.
    Has anyone else come across this problem and found a solution?
    Disclaimer: I am forever a newbie!

  2. #2
    Junior Member
    Join Date
    Jun 2004
    Posts
    8
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Cannot read text in javaeditbox

    Hi Tifany,

    What have you tried to get at the text?
    Basic stuff I'll try:


    JavaWindow("myjavawindowname").Attach
    JavaEditBox("Index=n").Click 1, 1 '(n being the index number, if you can get it)

    myvariable = JavaEditBox("Index=n").Text

    or...

    Dim myvar As TJavaEditBox

    Set myvar = JavaEditBox("Index=n")

    MsgBox myvar.CaptureText


    Hope that's not too beginner for you, just trying to find a starting point.
    Good luck.

  3. #3
    Member
    Join Date
    May 2007
    Posts
    98
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)
    Total Downloaded
    0

    Re: Cannot read text in javaeditbox

    Yeap.. this is a little basic..
    When I use the second suggestion, the captured text is the text that lies behind the alert window. Not the text contained in the alert window.
    Thanks anyway.
    Anymore ideas?
    Disclaimer: I am forever a newbie!

  4. #4
    Junior Member
    Join Date
    Jun 2004
    Posts
    8
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Cannot read text in javaeditbox

    Hi Tifany,

    Sometimes with TP, I'll have try different things to get it to interact with the actual object I want. Besides doing the .Attach, I'll .SetFocus and even perform a mouseclick on the actual object itself, just a simple object.click 1,1
    then go and grab the text.

    Also, if the editbox is embedded in another java object, try grabbing the text out of the higher object. It won't be as targeted because it'll grab other text, but then you'll just have to do some string parsing.

    If you're app (or an example) is accessible outside your internal network/domain, I'd be happy to poke around and try to help figure something out. Let me know what you think. In the meantime, let me talk to some other engineers within my company to se eif they have any ideas.
    Good luck.

  5. #5
    Member
    Join Date
    May 2007
    Posts
    98
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)
    Total Downloaded
    0

    Re: Cannot read text in javaeditbox

    Thanks, I will try that out.
    There is no way to get you into our app though I appreciate the offer.
    Disclaimer: I am forever a newbie!

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 11.54%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin 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 06:38 AM.

Copyright BetaSoft Inc.