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 / 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 |
Post New Answer View All Answers
Which functionalities of QTP used in banking project? pls any say answer?
How to capture dynamic values in load runner and how Each of the captured values are to be written to a text file (c:\temp\LoadRunner1.txt)
How to do the scripting. Is there any inbuilt functions in qtp as in qtp-s. What is the difference between them? How to handle script issues?
What test cases can you automate using QTP?
hi i have completed my b.tech in cse stream. now i am working in an organisation in testing department. i want do sap course but i dnt know which module will boost my career can anyone suggest me which is good for my career
How to find array size in qtp?
What is difference between run time object and test object?
What is text/text area checkpoint?
How to start recording using quicktest professional (qtp)?
What is the qtp testing process?
what are all the fileds present in object repository?
Explain runtime dynamic settings?
Suggest and Define a solution for an application whose objects are not recognized by UFT?
What is Cross browser testing? Does UFT support it?
How do you know the location Id of an object if you know its index id?