Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > VB Script

Vista - How to create an object for WebEdit box?

Reply
 
Old 10-01-2008   #1 (permalink)
Mru


 
 

How to create an object for WebEdit box?

I am using Createobject method but dont know which object to provide
for webedit?

My System SpecsSystem Spec
Old 10-01-2008   #2 (permalink)
mayayana


 
 

Re: How to create an object for WebEdit box?

> I am using Createobject method but dont know which object to provide
Quote:

> for webedit?
Maybe you should explain more. What's webedit?


My System SpecsSystem Spec
Old 10-03-2008   #3 (permalink)
Mru


 
 

Re: How to create an object for WebEdit box?

On Oct 1, 9:55*pm, "mayayana" <mayaXXy...@xxxxxx> wrote:
Quote:
Quote:

> > I am using Createobject method but dont know which object to provide
> > for webedit?
>
> * Maybe you should explain more. What's webedit?
I am working in QTP. I think WebEdit i.e. webeidt box may not be a
global object. It might be related to QTP.
It is basically a TextBox. So the code with textbox will work with QTP.
My System SpecsSystem Spec
Old 10-03-2008   #4 (permalink)
mayayana


 
 

Re: How to create an object for WebEdit box?

>
Quote:

> Maybe you should explain more. What's webedit?
I am working in QTP. I think WebEdit i.e. webeidt box may not be a
global object. It might be related to QTP.
It is basically a TextBox. So the code with textbox will work with QTP.

And what's QTP? Why do you assume people
know these things? Judging from the lack of
responses it looks like nobody here knows what
you're talking about. Whatever webedit and QTP
are, they're not among the basic objects that
most people can access via VBScript.


My System SpecsSystem Spec
Old 10-12-2008   #5 (permalink)
Waseem


 
 

RE: How to create an object for WebEdit box?



"Mru" wrote:
Quote:

> I am using Createobject method but dont know which object to provide
> for webedit?
>
Try this,
Set objWebEdit=description.Create()
objWebEdit("micclass").value="WebEdit"
objWebEdit("html tag").value="Input"
objWebEdit("name").value="NameOfEditBox"

'Get All Edit Boxes on the Page
Set EditBoxes = Browser().Page().ChildObjects(objWebEdit)
For i = 0 to EditBoxes.Count-1
EditBoxes(i).Set "value"&i
Next
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Can I Create an empty MetaFile Object in C#? .NET General
Error=429: ActiveX component can't create object Vista General
Error=429 : ActiveX component can't create object Vista General
Error 429 : ActiveX component can't create object Vista General
How to Create Collection Generic Class using new-object PowerShell


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46