can any one tell me what is syntax error in line

msgexist=Browser("title:=Gmail: Email.*").Page(
"title:=Gmail: Email .*").WebElement(innertext=&msg).exist


'code **************

Call login("lal="," " )
wait(5)
Call errormsg("Invalid email address. [?]" )

Function errormsg(msg)
msgexist=Browser("title:=Gmail: Email.*").Page(
"title:=Gmail: Email .*").WebElement(innertext=&msg).exist
if msgexist then

Reporter.ReportEvent micPass,"enter valid username or pwd
",msg
else
Reporter.ReportEvent micFail, "entered valid uname and
pwd",msg
end if

End Function

Answer Posted / ashok kumar

msgexist=Browser("title:=Gmail: Email.*").Page(
"title:=Gmail: Email .*").WebElement("innertext="&msg).exist

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What contains Data Driven Framework document in qtp?

1471


how to use the QTP choose the data from oracle? e.g. i input the identity card NO. this will be add new record in the database ,and now i want get this record's prime key.

1326


Why qtp always start action1 and does not start action?

607


How many ways we can parameterize data in quicktest professional?

565


What is the Difference between copy to action and call to action?

591






What is the difference between a Function and Procedure in QTP?

689


What is the extension of the qtp local repository?

568


What is an object repository?

612


What phases are involved in testing an application in qtp?

562


how to fetch the values from grid? & qtp recogniges that grid as a webelement? what u do?

1910


Differences between quicktest professional (qtp) and winrunner?

626


Explain the concept of how quicktest professional (qtp) identifies object?

580


Is qtp supports uni-code?

618


How QA specialist can identify when programmatic descriptions are useful?

1974


Explain in brief about the quicktest professional automation object model?

519