09-12-2012, 12:54 PM
Hello All,
I have a script to find a string in a web page.
But my page contains the string at three different position with three different format.
i want to find the string with particular styling(format).
i got this error
Object doesn't support this property or method
Line (10):
here is my code
why this error is occuring?
thanks
sia
I have a script to find a string in a web page.
But my page contains the string at three different position with three different format.
i want to find the string with particular styling(format).
i got this error
Object doesn't support this property or method
Line (10):
Code:
"If Instr(strBodyText,val)>0 Then".
here is my code
Code:
strBodyText=Browser("Jsdl").Page("Jsda").Object.Body.innertext
dim val
set val=WebElement("html tag:=H1","innertext:="&DataTable("categories", dtGlobalSheet))
If Instr(strBodyText,DataTable("categories", dtGlobalSheet))>0 Then
Reporter.ReportEvent micPass,"pass","category found 1"
Browser("Jsdl").Page("Jsdl").WebElement("html tag:=H1","innertext:="&DataTable("categories", dtGlobalSheet)).click
else
Reporter.ReportEvent micFail,"invalid","category not found"
End If
why this error is occuring?
thanks
sia