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 / 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 |
Post New Answer View All Answers
On the website, the protocol has been changed https: to https what you will do? Tell me your approach?
how to use the QTP choose the data from oracle? e.g. i input the identity card NO. this will be add new record in the database ,and now i want get this record's prime key.
What are the views available in quicktest professional?
How to get the particular property value?
How to capture a window in QTP?
What are the automation metrice in your project?
Explain the concept of object repository and how quicktest professional recognises objects?
Write the script to delete the mail which is at 9th,13th and 18th place in INBOX of Gmail ?
How to Upgrade or support firefox 2.0 version on QTP 9.0? I have installed QTP 9.0 and installed firefox 2.0. But in REcord and Run Settings, it shows firefox 1.5 in Web tab for browser selection.
what is the difference between the modular framework and datadriven frame work
What is ObjectParamater?
Explain how you can delete excel file in qtp?
I need to pull the data from the page which in row, column vice into excel sheet, how can it be done using QTP? eg: Name Dept xyz gdty i need the same data to be exported in excel sheet.
What are the methods of the TextStream object that are used for reading from a text file?
What are the general steps involved in the data driven framework?