Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
fing the string in web page
#2
Solved: 11 Years, 4 Months, 3 Weeks ago
@Sia,

There are three option that you can use for this.

1. You can use the find option on the webpage by using Ctrl+F. You can use the sendkey/Shell object.

2. Use a regular expression to check for this

3. Get the whole page text using
Code:
strBodyText=Browser().Page().Object.Body.innertext
'Now use instr function to see if the text was found or not
If Instr(strBodyText,"<Your Text>")>0 Then
'Found
Else
'Not Found
End IF

Regards,
Ankesh
Reply


Messages In This Thread
fing the string in web page - by sia sharma - 08-22-2012, 11:21 AM
RE: fing the string in web page - by Ankesh - 08-22-2012, 11:59 AM
RE: fing the string in web page - by sia sharma - 08-22-2012, 02:09 PM
RE: fing the string in web page - by sia sharma - 09-12-2012, 12:54 PM
RE: fing the string in web page - by Ankesh - 09-12-2012, 03:05 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  click each web link in a page using Index or other method in QTP smeijer 13 24,820 04-29-2017, 04:53 PM
Last Post: kowshik
  VB Script to count number of links in a web page. Suma Parimal 4 25,377 07-01-2015, 12:59 PM
Last Post: govind
  Replace a string in a word document with another string rekha.naik 8 15,583 11-14-2013, 12:58 PM
Last Post: pranikgarg
  Cannot find the "[ WebButton ]" object's parent "[ Page ]" (class Page) sumitparolkar@gmail.com 4 5,174 05-03-2013, 11:53 PM
Last Post: agarwl.anurag
  How to test a Web page Monica Soneja 3 3,564 04-09-2013, 06:37 AM
Last Post: basanth27

Forum Jump:


Users browsing this thread: 3 Guest(s)