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
msgexist=Browser("title:=Gmail: Email.*").Page(
"title:=Gmail: Email .*").WebElement("innertext="&msg).exist
| Is This Answer Correct ? | 4 Yes | 0 No |
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 |
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 |
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 |
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.
what is the qtp objects?
Explain the new feature of UFT regarding the export of test results?
what is exact difference between smoke and sanity testing?
what is profile tool?
Hi All, How to get repeated word in string . Thanks Balaji
in QTP,how to write a descriptive program for "yahoo" or "gmail" Login page
suppose i can done the project in automation tool with QTP in that time what i can say?
How does quicktest professional (qtp) identifies the object in the application?
What are the Automation Limitations??
can anyone explain about the Descriptive programming in detail. I mean how to use in the script.
What is difference between QTP 8.2 Obect Repository and QTP 9.2 object Repository?