Results 1 to 2 of 2
  1. #1

    Capture the Red color text from web table

    I need your help for writing function; where the QTP will store text in a variable for the row with text in RED color.

    More info -
    The web table contain rows with text with RED and BLACK colors
    BLACK color is indicating task is complete
    RED color is indicating task is incomplete

    Please note - I am talking about the color for the text and not background color.

  2. #2

    Re: Capture the Red color text from web table

    Try this......

    Set objTable = Browser("micClass:=Browser").Page("micClass:=Page" ).WebTable("html id:=tblTest")

    Set objDesc = Description.Create
    objDesc("html tag").Value = "TD"
    Set arrTDs = objTable.ChildObjects(objDesc)
    Set objTable = Nothing
    Set objDesc = Nothing

    For intIndex = 0 To arrTDs.Count - 1
    Print arrTDs(intIndex).GetROProperty("innertext") & " : " & arrTDs(intIndex).Object.CurrentStyle.color

    Set arrTDs = Nothing
    Attached Images Attached Images
    Chinta Praveen Kumar
    <font color="green">A SQL query walks into a bar. He approaches two tables and says, "Mind if I join you?"</font> [img]/images/graemlins/grin.gif[/img]



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
BetaSoft Inc.
All times are GMT -8. The time now is 07:40 PM.

Copyright BetaSoft Inc.