Micro Focus QTP (UFT) Forums
how to test a moving text on a website - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Interview Questions (https://www.learnqtp.com/forums/Forum-UFT-QTP-Interview-Questions)
+--- Thread: how to test a moving text on a website (/Thread-how-to-test-a-moving-text-on-a-website)



how to test a moving text on a website - riteshnaidu - 12-27-2008

hi ankur,
please let me know how can we test a moving text on a website, to be more specific, a text moving from left to right or right to left. please check this link below which will give u a good idea about my question.
http://indianrail.gov.in/pnr_stat.html
we can see the text "SMS at 57886,5676747,54959,58888 to know the various Railway Enquiries" moving from right to left. I tested with a standard checkpoint, is there any other way i can test it with.
Please let me know....

Rolleyes


RE: how to test a moving text on a website - Aditest0870 - 12-27-2008

Hi Ankur,
Use the following code -
Code:
Set oDesc = Description.Create()  
oDesc("micclass").Value = "WebElement"
oDesc("html tag").Value = "TD|DIV" OR ( What ever the GUI spy says)
Set WebElementList =PageObj.ChildObjects(oDesc)
    'Count the No. of Images in UI screen
NoOfWebElement = WebElementList.Count()          
    'This FORLOOP for clicking on exact search value for WebTable.
    For i = 0 To NoOfWebElement -1
                            On Error Resume Next
            StrArry = WebElementList(i).GetROProperty("innertext")
                If  Instr( StrArry,ObjectName)> 0    Then
                    ObjExist=true
                    Exit For
                else
                    ObjExist = false
                End If
                           Next:)