Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

How will you handle the situation when object is not captured during record?

12 Answers   AZTEC,


wht is the difference between action and functio?

3 Answers  


what is the difference between development and testing

1 Answers  


How to capture checkbox properties when properties of the object keep changing on relogin to the application.

0 Answers   TCS,


What is dictionary object? what is the use of it? How you will display all the items in the dictionary object?

1 Answers   Bank Of America,


what is defination of system testing?

3 Answers   CodeArrow, Infosys, Omax,


How to load the object repository at run time?

9 Answers   TCS,


what is the difference between QTP 8.0 & 9.0?

4 Answers  


While testing .net applications with QTP 9.1 in normal recording mode, QTP records my unintentional mouse clicks and window dragging which I don't want. But I can't stop QTP recording those mouse clicks and window dragging. Can somebody let me know how I can get rid of it, please ! Thanks.

1 Answers  


If you giving priority as p0, as a developer if I give priority as p2, What happens In user defined function ?

0 Answers  


CAN ANY ONE PLEASE EXPLAIN DIFFERENT TYPE OF FRAMEWORKS USED IN QTP?EXPLAIN EACH OF THEM?..POST TO VANILKUMAR_1981@YAHOO.CO.IN

2 Answers  


How to handle Dynamically changing Objects in QTP?

4 Answers  


Categories