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 / shaik mohinuddin

innertext:=

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we write winrunner language i.e TSL in QTP tool?

1465


Mention the different actions types of qtp.

569


how to test Web application using QTP software

1555


Explain how you can find the absolute value of the number in qtp?

639


Hi, Can anyone please tell me how to connect the QC with QTP using QTP script? Thanks in advance

1515






Can I change properties of a test object?

609


What is expert view and keyword view?

618


To which environments does quicktest professional (qtp) supports?

580


What is environment variable in qtp and why to use it?

539


Which recording modes need more memory?

571


what function you write to do database testing with the help of qtp?

1352


Hi, I am using 2 excel sheet.First excel sheet works fine with the script, if it opens the 2nd excel sheet,it works fine,but after finish all the rows it is giving the following error in the following line. InValid Procedure call or argument Line (178): "Browser("name:="&result,"application version:=internet explorer 7").Page ("title:=bgt.*", "index:=0").WebList ("name:=SearchType","html id:=Select1","location:=0").Select SearchType1". I have seen a web article says that,If we use any vbscript friendly name it may gives the above error-Invalid procedure call or argument not sure,Am I using any VBScript frienlyName? in the above line? [but the same line is perfecly working for first Excel ] It is little urgent. Any Help Thanks you

1438


How many ways we can parameterize data in quicktest professional?

548


What is throw object?

1733


what are the limitations of smart identification in qtp 9.0

1917