09-12-2012, 03:05 PM
below statement is wrong
you should use
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
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