Whenever I use Wscript.Echo Qtp raising Run time error
as 'Object required for Wscript' How I can create object
for Wscript
Answer Posted / utpal
Wscript.Echo is a pure vb script which runs on vb Script
engine where as QTP has wrapper class around the vbscript
engine so it does not support these methods in the script.
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What are the 2 ways in which a variable can be declared in the vbscript language?
Explain the scope of the variables using dim, public, and private keywords respectively.
What is the purpose of the err object in the vbscript language?
How to assign a numeric value to a variable?
i am having some basic knowledge in c and VB 6.0. i qtp i want to know how to write the codings. by recording it is generating lot of codings. for example i want to test the text box. senerio is text box should not accept alphabets if it accept alphabets we should return fail status if it get number we should return pass status. how to write coding in vb script please help me
what is the features of visual basic?
How to open excel in vb script?
Mention how to access array data?
Like OPTION EXPLICIT statement what are the other statements used in vbscript and their usage. Please post me all the statements please.
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 to Import data from a file (file is on the desktop) to the data table
How to Import data from a file (file is on the desktop) to the data table
Explain about the support of asp for vb script functionality?
Set srchobj=Description.Create() srchobj("type").value="text" srchobj("name").value="q" srchobj("html tag").value="input" browser("micclass:=google").Page("micclass:=google").webedit (srchobj).Set "qtp" what's wrong in my code pls tell me ? the above code working fine and i got my result pass,now i am trying to run the program it shows general run time error why?pls help me i am in learning stage ?
write a function to read the items from combobox of Flight reservation & save in excel (QTP)??