Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Find or Search method
#1
Not Solved
I have been trying to use the Find or Search methods on an html page. But I am having no luck and I dont find much online

The QTP has object.Find (PropertyName) but that;'s it.

I have tried the following with no luck:


Code:
Set TableObj = Browser("Fax Request").Page("Page").WebTable("Fax Status")

            If Browser("Fax Request").Page("Page").WebTable("Fax Status").Search (FaxName) Then
                Browser("Fax Request").Page("Page").WebElement("innertext:=" & FaxName ).Highlight
            End If

            If TableObj.Find ("innerText:" & FaxName) Then
                Browser("Fax Request").Page("Page").WebElement("innertext:=" & FaxName ).Highlight
            End If

            If TableObj.Find.MatchWholeWord (FaxName) Then
                Browser("Fax Request").Page("Page").WebElement("innertext:=" & FaxName ).Highlight
            End If

And other varations.

Does anyone use Search or Find on an html page that can give me an idea on how to use these two methods?
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  CyberArk CorePAS REST API to search for accounts pramod 0 866 06-29-2023, 03:11 PM
Last Post: pramod
  Search All Test scripts For a Function? AndyBSG 1 2,785 02-19-2015, 04:15 AM
Last Post: supputuri
  Search for a string in all the files under all subdirectory Mahesh27 1 2,245 07-03-2013, 03:24 PM
Last Post: Sathiya
  Testing Search box kriday 1 2,555 06-26-2013, 08:51 AM
Last Post: basanth27
  Search for a word in excel string QAVA 6 9,461 11-23-2012, 11:17 AM
Last Post: vinod123

Forum Jump:


Users browsing this thread: 1 Guest(s)