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

Code:
set val=WebElement("html tag:=H1","innertext:="&DataTable("categories", dtGlobalSheet))

you should use

Code:
Set val=Browser().Page().Webelement()

Now val becomes an object. You can not directly compare its value to a string. Use val.text instead.

I dont see the code for which you have got the error in the code you have posted. Plz post the full code.

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,565 04-09-2013, 06:37 AM
Last Post: basanth27

Forum Jump:


Users browsing this thread: 4 Guest(s)