SPONSORS:






User Tag List

Page 1 of 2 12 LastLast
Results 1 to 10 of 18
  1. #1
    Member
    Join Date
    Oct 2001
    Posts
    128
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Verifying highlighted text on a web page

    Is there a way to verify that particular text is highlighted on a web page using Silk 5.0.3.2 DOM ?

    Thanks.

    ------------------
    quality - a way of life!
    quality - a way of life!

  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: Verifying highlighted text on a web page

    Please tell us the class of the control or window you are looking at.

    If the class is a troublesome one, you can always TypeKeys("<Ctrl-C>") and then do a Clipboard.GetText(). But there will probably be an easier way - depends on the particulars.

    AG

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

  3. #3
    Member
    Join Date
    Oct 2001
    Posts
    128
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Verifying highlighted text on a web page

    I am referring to text such as BrowserPage.BrowserChild.HtmlText(): In this some text is highlighted which is required to be verified.
    quality - a way of life!

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

    Re: Verifying highlighted text on a web page

    Oops -- the formatting of my earlier posting got screwed up -- the TypeKeys should have looked like this:

    TypeKeys("[Ctrl-C]")

    The greater than / less than symbols don't print right. Sorry for the confusion!
    AG

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


    [This message has been edited by agroves (edited 03-18-2002).]

    [This message has been edited by agroves (edited 03-18-2002).]

  5. #5
    Senior Member
    Join Date
    Jun 1999
    Location
    Fremont, CA, USA
    Posts
    355
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Verifying highlighted text on a web page

    There are several properties that you can get for HtmlText: BackColor, FontName, FontSize, FontStyle, and TextColor.

    Look up the GetTextProp method in the online help.



    ------------------
    David Genrich
    david.genrich@e2open.com
    david@linuxpuppy.net

  6. #6
    Senior Member
    Join Date
    Jun 1999
    Location
    Fremont, CA, USA
    Posts
    355
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Verifying highlighted text on a web page

    Ahh... You didn't ask for bold before

    Try the IsBold() method.



    ------------------
    David Genrich
    david.genrich@e2open.com
    david@linuxpuppy.net

  7. #7
    Member
    Join Date
    Oct 2001
    Posts
    128
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Verifying highlighted text on a web page

    Had a look at GetTextProp method. But, I am not able to verify if a particular piece of text is bold or not.

    ------------------
    quality - a way of life!
    quality - a way of life!

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

    Re: Verifying highlighted text on a web page

    Hey, you said "selected," not "bold"!
    AG

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

  9. #9
    Senior Member
    Join Date
    Jan 2001
    Posts
    750
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Verifying highlighted text on a web page

    davidgenrich:

    Too many lazy ppl in this forum. They should RTF manual. Maybe search is not invented in their neighborhood. All the manuals are searchable. It was fun to answer them when I was learning but now it's like deja vu all over the place.

    Remember this and you'll do good:
    RTFM
    RTFM
    RTFM
    RTFM
    RTFM
    RTFM
    RTFM
    RTFM
    RTFM
    RTFM
    RTFM
    RTFM
    RTFM
    RTFM
    RTFM

    Again don't ask what does RTFM stands for. Use www.google.com and learn something new today.

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


    [This message has been edited by GodKnows (edited 03-19-2002).]

  10. #10
    Senior Member
    Join Date
    Jun 1999
    Location
    Fremont, CA, USA
    Posts
    355
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Verifying highlighted text on a web page

    Asking the right question is sometimes heard, expecially when using a tool that you don't know.

    In another forum here a few months ago, a link was posted to a good artical. I couldn't find that posting, but have the artical printed out. It is on asking questions:

    How to Ask Questions the Smart Way
    http://www.tuxedo.org/~esr/faqs/smart-questions.html




    ------------------
    David Genrich
    david.genrich@e2open.com
    david@linuxpuppy.net

 

 
Page 1 of 2 12 LastLast

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 05:56 AM.

Copyright BetaSoft Inc.