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 |
How will you handle the situation when object is not captured during record?
wht is the difference between action and functio?
what is the difference between development and testing
How to capture checkbox properties when properties of the object keep changing on relogin to the application.
What is dictionary object? what is the use of it? How you will display all the items in the dictionary object?
what is defination of system testing?
3 Answers CodeArrow, Infosys, Omax,
How to load the object repository at run time?
what is the difference between QTP 8.0 & 9.0?
While testing .net applications with QTP 9.1 in normal recording mode, QTP records my unintentional mouse clicks and window dragging which I don't want. But I can't stop QTP recording those mouse clicks and window dragging. Can somebody let me know how I can get rid of it, please ! Thanks.
If you giving priority as p0, as a developer if I give priority as p2, What happens In user defined function ?
CAN ANY ONE PLEASE EXPLAIN DIFFERENT TYPE OF FRAMEWORKS USED IN QTP?EXPLAIN EACH OF THEM?..POST TO VANILKUMAR_1981@YAHOO.CO.IN
How to handle Dynamically changing Objects in QTP?