I'm new to QTP, i facing a a problem in the script
says"Object not found",
"Browser("").page("").frame(Name:=fminfo).webtable().
the issue is, QTp is not able to identify the web table in
run time.becuase in that fram"fminfo" there are "n"table
and the table do not have the names,Html id.
1) i need to count the number webtables available on that
page.
2)need to identify the webtable cell values.
3)How Loop the once i get the count and retrive the cell
data of each webtable?
Can anyone help on this, plz..
Thanks,
Suresh
Answer Posted / shashank shekhar raj
Hai Buddy,
Don't worry
Do one Thing Avoid Frame i mean Doesn't use frame in your
Script.
and you are beginner so i suggest you never ever use Frame
in your script it shows ERROR.
just write like this:-
"Browser("").page("").webtable("index:=?","htmlid:=?","name:=?")
Now you can easily find out properties of webTable in object Spy
BEWARE!!!!!!!! Always ignore Frame
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
i need to sort the data using qtp script for this how i need to write a qtp script
why variable name should not exceed 255 characters?
What are the different types of loops available in the vbscript language?
Hello Friends , I am the new joinner of this website. I am working with Sapient ,Gurgoan I would like to ask few qurries regarding the QTP Tool of (Testing) Currently working on QTP Tool . I would like to no learn VB Script can u name some Books which i get in market. And a small issue in QTP I had 2 users right i have to login and send the document from this user to second user right. when i am send this doc some contendId number generates right. now i am loging into second user and i have to search for that contentId right i found it now i dont want to accept the document so i had an opption of check out ok i have to click on check out my QTP Code is like this Browser(" ").Page(" ").WebTable(" ").ChildItem (3,5,"Image",0).click Browser(" ").Page(" ").Link("ChecK Out").Click i new this code is perfectly right but when i am run the script i have to click on that particular contentId and click on check out but now the Problem is started the error is the document has been already checked out remeber every time my content id changes means it is the new contentId which is not been used atleast once Please help me out in this issue i am in big trouble
what is used of Property........End Property loop ? how to write the script for it?
In what way program "hello world" you can write in vbscript?
hi Set myobj=Description.Create() myobj("type").value="submit" myobj("name").value="google search" myobj("html tag").value="button" browser("title:=google").page("title:=google").webButton (myobj).Click i was running above code in one weak back it was working fine i got result,again i opened after few days ,again i was trying to run the code it shows run time error in last line of my code ,why ?pls answer my question?
How will you get a subset of a array in vbscript?
Which respective symbols are used to separate a line and to break the lengthy statement into multiple statements in the vbscript language?
How will you check that a variable is an array in vbscript?
What are subprocedures in vbscript?
What is vbscript?
What are the 2 ways to pass a value to the function?
Which conditional statement is the most convenient one to use in the case of multiple conditions in the vbscript language?
Which object is used to work with the database in the vbscript language and what statement is used to create this object?