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

Answers were Sorted based on User's Feedback



can any one tell me what is syntax error in line msgexist=Browser("title:=Gmail: Email.*&q..

Answer / ashok kumar

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

Is This Answer Correct ?    4 Yes 0 No

can any one tell me what is syntax error in line msgexist=Browser("title:=Gmail: Email.*&q..

Answer / shubh

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


should be written as

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

Is This Answer Correct ?    2 Yes 2 No

can any one tell me what is syntax error in line msgexist=Browser("title:=Gmail: Email.*&q..

Answer / prakash

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


'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(2)
if msgexist then

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

End Function

Is This Answer Correct ?    0 Yes 0 No

can any one tell me what is syntax error in line msgexist=Browser("title:=Gmail: Email.*&q..

Answer / shaik mohinuddin

innertext:=

Is This Answer Correct ?    0 Yes 0 No

can any one tell me what is syntax error in line msgexist=Browser("title:=Gmail: Email.*&q..

Answer / pavani prasad

Function errormsg(msg)

if Browser("title:=Gmail: Email.*").Page(
"title:=Gmail: Email .*").WebElement(innertext=&msg).exist
then
Reporter.ReportEvent micPass,"enter valid username or pwd
",msg
else
Reporter.ReportEvent micFail, "entered valid uname and
pwd",msg
end if

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More QTP Interview Questions

Is it possible to convert QTP scripts to Silk scripts?

2 Answers   Sierra Atlantica,


Can anybody let me know how to test the Drag and drop feature of the column in a .net application...eg..i hav to test the drag and drog feature of a table(swftable) in a application..plze help!!

0 Answers  


In a webpage how to check the dynamic links that re changing regularly?( without using regular expressions.)

3 Answers   Misys,


Hi,iam new to automation and i have 1 year experience in manual testing.I have a little bit idea about QTP9.0 .But i have no idea about script writing using VB.Please help to learn script writing.

1 Answers  


Which Databases supports for QTP?

2 Answers  






Syntax for how to call one script from another and Syntax to call one "Action" in another?

1 Answers   Crea,


what is the difference between image and bitmap check point

3 Answers  


What is API

2 Answers   Satyam,


how u conduct GUI testing and PERFORMANCE testing on MS- WORD? and What r the GUI Test Cases and performance Test Cases?

3 Answers   Accenture, Civil Service, ICICI, Jintek, Satyam, Singularity, Syntel, TCS, Wipro,


1.How do u prepare the test suits in QC? 2.How do u convert requirements to test plan in QC?

0 Answers  


What is CMMP and CMMH?

0 Answers  


where we are going to write the descriptive programming.for example we are invoking qtp application where we are going to write that code

3 Answers  


Categories