how to display all the links in one page using vb script in qtp.
Answer / sowmya
We can use the page check point to display the number of
links in a web page
or
we can create the child object
set objlink=description.create()
objlink ("micclass").value='weblink'
set odesc=browser("browser").page("browser").childobject
(objlink)
numberoflinks=objlink.count
msg numberoflinks
i think it should work.....
Is This Answer Correct ? | 7 Yes | 4 No |
How to declare an array in vbscript?
Hi Friends, I am facing some issues with If,else condition,i.e. i am working on some web page for ex:gmail page.now if i want to check if username is incorrect or already exist,i want to display error message in my test report,for this i am using a simple code first,i.e. If Browser("Gmail: Email from Google").Page("Gmail: Email from Google").WebEdit("Email").Set "Shekhar.g"= true Then Msgbox ("Username Does not Exist!") Else msgbox ("Welcome !") End If But still i am getting a syntax error If Browser("Gmail: Email from Google").Page("Gmail: Email from Google").WebEdit("Email").Set "shekhar.g"= true Then Msgbox ("Username Does not Exist!") Else msgbox ("Welcome !") End If I don't feel any thing wrong in this syntax but i don't understand why it shows such error,i am confused what went wrong,please help me out & do the favor,thanks a lot....
How to create a function in vbscript?
How can we return a value from User Defined Function ? For Eg. we have 2 functions. In Fun1 i am getting 2 values (a,b) and i am addding those 2 and storing in to another var (c). Now i want to pass that var(c) to another function (fun2). What will be the script?
write a program to display configuration of a local system with the help of vb script.
Explain the tristate constants in vbscript?
write a vb script create 5 folders test1 test2 test3 test4 test5
What is vbscript language used for and which earlier language is it modeled upon?
what is the differance between BYVAL,BYREF?
Can any 1 modify the code whr in want to add\rename a excel sheet in qtp?
Which loop is used in case of arrays in the vbscript language?
How will you convert a string to lower case string using vbscript?