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

Explain about Checking Bitmaps?

1 Answers   Crea,


Should have experience in framework means?

0 Answers  


in login module login button chage regularly(means login button change to submit button).What is the code for it.

3 Answers  


Explain about invoking of application?

2 Answers  


How do you test the different ads displayed in the Inbox home page of Yahoo. Once u login Yahoo mail, in inbox page there will a banner, where different ads are scrolling, how do you test that using qtp?

2 Answers  






How to handle the exceptions using recovery scenario manager In QTP?

2 Answers  


Today only i joined in this site. Can u please tell me definition of parameterization. and how i can do the parameterization?

6 Answers  


How to find the OS name by using QTP script?

2 Answers   IBM, Tech Mahindra,


Can you tell me the differences between writing the VB script manually for a application and recording the same application in QTP , with a example?

1 Answers  


An action has both shared and local OR associated with it and both have the same object in them. In the test which one will be considered?

0 Answers  


how can you write a script without using GUI in QTP?

5 Answers   Ordain Solutions,


can any body give the banking domain concepts/links

0 Answers  


Categories