write a script to count no drives in file systems in qtp?
Answer Posted / sandeep
Set FSO=CreateObject("scripting.filesystemobject")
Set coll=fso.Drives
MsgBox coll.Count
Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
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?
Mention how to assign a date value to a variable?
Hi this is Vinoth. I need a help on below mentioned question A combobox contains list of items assume as 5 I have to get each items Individually and I have to Export to datatable. Please help me on this. Thanks
Can automation testing find ssame no. of bugs what we can find by manual testing?
I am working on QTP, got struck in one place.. In my application depending upon configuration WebEdit count is increasing/ decreasing.. how to get these webedits..
How will you get the octal value of the given number in vbscript?
What is the output of a + b in vbscript if a = 5 and b = 10?
Dear All, I am geting below IE error whilie executing the QTP scripts in Batch mode "Internet Explorer has encountered a problem and needs to close. We are sorry for the inconvenience." can any one suggest me how to resolve this issue . Thanks Balaji
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 ?
Difference between dim,public and private variables in vb script?
How to Import data from a file (file is on the desktop) to the data table
if u ve resrevation for train and u get a number supose 1234xxxokie.after sucessul entering all required fields. now u put that number in search and want to chk wether these ar same or not if both ar same then its okie otherwise test fail.what would be the vb script code for it to compare these two values of different page.
How will you format a number in percetage format in vbscript?
What are class events?
can anyone tell me the procedure of interview held in applabs