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

Could someone explain me how to work on Out put values, explain with some example on Flight Reservation. I want to insert the out put value for the order No. Please explain the steps with some example.

2 Answers  


what is the qtp objects?

0 Answers  


Explain the new feature of UFT regarding the export of test results?

0 Answers  


what is exact difference between smoke and sanity testing?

6 Answers   Satyam,


what is profile tool?

0 Answers   ITC Infotech, TCS,


Hi All, How to get repeated word in string . Thanks Balaji

0 Answers  


in QTP,how to write a descriptive program for "yahoo" or "gmail" Login page

1 Answers  


suppose i can done the project in automation tool with QTP in that time what i can say?

3 Answers  


How does quicktest professional (qtp) identifies the object in the application?

0 Answers  


What are the Automation Limitations??

1 Answers  


can anyone explain about the Descriptive programming in detail. I mean how to use in the script.

1 Answers  


What is difference between QTP 8.2 Obect Repository and QTP 9.2 object Repository?

2 Answers   Nokia,


Categories