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 |
Is it possible to convert QTP scripts to Silk scripts?
Can anybody let me know how to test the Drag and drop feature of the column in a .net application...eg..i hav to test the drag and drog feature of a table(swftable) in a application..plze help!!
In a webpage how to check the dynamic links that re changing regularly?( without using regular expressions.)
Hi,iam new to automation and i have 1 year experience in manual testing.I have a little bit idea about QTP9.0 .But i have no idea about script writing using VB.Please help to learn script writing.
Which Databases supports for QTP?
Syntax for how to call one script from another and Syntax to call one "Action" in another?
what is the difference between image and bitmap check point
What is API
how u conduct GUI testing and PERFORMANCE testing on MS- WORD? and What r the GUI Test Cases and performance Test Cases?
3 Answers Accenture, Civil Service, ICICI, Jintek, Satyam, Singularity, Syntel, TCS, Wipro,
1.How do u prepare the test suits in QC? 2.How do u convert requirements to test plan in QC?
What is CMMP and CMMH?
where we are going to write the descriptive programming.for example we are invoking qtp application where we are going to write that code