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 / 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 View All Answers
In an interview, what r the general questions asked in SQL which is realted to testing ?pls give me anwser to this question?
Can you list some technologies that support qtp?
hi i am working with vbwindow on qtp.first i am openning qtp whenever open qtp my application not open that time generated error like "Runtime error 0" and fatal error:automation error how to solve this problem pls tell me
what testplan contents and what test strategy contents,what is the diff b/w them
Can QTP be used for GUI testing ?, We are using Java with MySQL and Operating system is Linux. We are NOT using the web.
Can we call qtp test from another test using scripting. Suppose there are 4 tests and I want to call these tests in a main script. Is this possible in qtp?
How will you declare a variable in qtp?
Can any one tell me.......How the test engg's start testing in the compy environment.....real time tester PLSSSS help me i need in depth information regarding this...
how will you check how many members visited the website www.infosys.com?
Explain the concept of how quicktest professional identifies object?
Explain in brief about the quicktest professional (qtp) automation object model?
What is the framework your company is following. What is the reason. Explain why key word driven frame work is chosen.
Explain process of smart Identification in QTP?
How to carry out bit map check points in QTP
How is the Bitmap checkpoint different from Image checkpoint?