problem in filling form on web

  • (2 Pages)
  • +
  • 1
  • 2

27 Replies - 1770 Views - Last Post: 03 June 2012 - 06:45 PM Rate Topic: -----

#1 yossi321  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 20
  • Joined: 14-March 12

problem in filling form on web

Posted 23 May 2012 - 07:42 AM

hello
I'm trying to fill form of signing up new account in gmail
it works good if I fill the 2 password fields by myself
but when I fill those fields by code like this:

wb1.document.getElementsByname("Passwd").Item(0).Value = MyPass
wb1.document.getElementsByname("PasswdAgain").Item(0).Value = MyPass 

the fields are filled ok but when I submit the form I've got an error in the browser "In order to sign up for a Google Account, you need to have Javascript enabled in your browser"
I think that when the fields are been filling by keyboard, there is a script code that generate but I didn't find that script code
any help please?

Is This A Good Question/Topic? 0
  • +

Replies To: problem in filling form on web

#2 BobRodes  Icon User is offline

  • Your Friendly Local Curmudgeon
  • member icon

Reputation: 574
  • View blog
  • Posts: 2,989
  • Joined: 19-May 09

Re: problem in filling form on web

Posted 23 May 2012 - 03:23 PM

Is there a reason that you've posted this in the VB6 forum? It looks like javascript to me.
Was This Post Helpful? 0
  • +
  • -

#3 yossi321  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 20
  • Joined: 14-March 12

Re: problem in filling form on web

Posted 23 May 2012 - 11:13 PM

I'm using vb6
that code I wrote is in vb6
I used Set wb1 = CreateObject("internetexplorer.application")
Was This Post Helpful? 0
  • +
  • -

#4 BobRodes  Icon User is offline

  • Your Friendly Local Curmudgeon
  • member icon

Reputation: 574
  • View blog
  • Posts: 2,989
  • Joined: 19-May 09

Re: problem in filling form on web

Posted 24 May 2012 - 06:03 AM

Oh, that makes sense. Thanks for clarifying. Now to be completely clear, you do not get this error when you bring up IE via your wb1 object and fill in the password fields manually?

This post has been edited by BobRodes: 24 May 2012 - 06:04 AM

Was This Post Helpful? 0
  • +
  • -

#5 yossi321  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 20
  • Joined: 14-March 12

Re: problem in filling form on web

Posted 24 May 2012 - 12:03 PM

that's right
Was This Post Helpful? 0
  • +
  • -

#6 BobRodes  Icon User is offline

  • Your Friendly Local Curmudgeon
  • member icon

Reputation: 574
  • View blog
  • Posts: 2,989
  • Joined: 19-May 09

Re: problem in filling form on web

Posted 24 May 2012 - 01:33 PM

And you're getting the error as soon as you execute the code, or when you try to post the new userid? Edit: sorry, you already said the latter. Can you go into the browser and manually enable javascript after running your code?

This post has been edited by BobRodes: 24 May 2012 - 01:35 PM

Was This Post Helpful? 0
  • +
  • -

#7 yossi321  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 20
  • Joined: 14-March 12

Re: problem in filling form on web

Posted 24 May 2012 - 02:31 PM

I tried to enable everything related javascript but I still got an error
I think there is a script running when typing the password and it is not running when inserting it by code
I want to know how can I find that script
Was This Post Helpful? 0
  • +
  • -

#8 BobRodes  Icon User is offline

  • Your Friendly Local Curmudgeon
  • member icon

Reputation: 574
  • View blog
  • Posts: 2,989
  • Joined: 19-May 09

Re: problem in filling form on web

Posted 25 May 2012 - 06:24 AM

I'm sorry, I have no idea. You could try another thing. Open up a browser manually and attach to it with your code using GetObject instead of using CreateObject and opening a new one. See if that works any differently.
Was This Post Helpful? 0
  • +
  • -

#9 yossi321  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 20
  • Joined: 14-March 12

Re: problem in filling form on web

Posted 29 May 2012 - 02:44 AM

I tried but I get an error
ActiveX component can't create object or return reference to this object (Error 429)
Was This Post Helpful? 0
  • +
  • -

#10 BobRodes  Icon User is offline

  • Your Friendly Local Curmudgeon
  • member icon

Reputation: 574
  • View blog
  • Posts: 2,989
  • Joined: 19-May 09

Re: problem in filling form on web

Posted 29 May 2012 - 09:13 AM

Hmm. Post your GetObject code, will you?
Was This Post Helpful? 0
  • +
  • -

#11 yossi321  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 20
  • Joined: 14-March 12

Re: problem in filling form on web

Posted 29 May 2012 - 09:31 AM

Set wb1 = GetObject(, "InternetExplorer.application")
Was This Post Helpful? 0
  • +
  • -

#12 BobRodes  Icon User is offline

  • Your Friendly Local Curmudgeon
  • member icon

Reputation: 574
  • View blog
  • Posts: 2,989
  • Joined: 19-May 09

Re: problem in filling form on web

Posted 29 May 2012 - 09:33 AM

And you did open a copy of IE before running your code?
Was This Post Helpful? 0
  • +
  • -

#13 yossi321  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 20
  • Joined: 14-March 12

Re: problem in filling form on web

Posted 29 May 2012 - 09:54 AM

sure
I tried this
Dim ShellApp
Set ShellApp = CreateObject("Shell.Application")
Dim ShellWindows
Set ShellWindows = ShellApp.Windows()
Dim i
For i = 0 To ShellWindows.Count - 1
    If InStr(ShellWindows.Item(i).FullName, "iexplore.exe") <> 0 Then
        Set wb1 = ShellWindows.Item(i)
    End If
Next

It works and get the object but the main problem is still exist
Was This Post Helpful? 0
  • +
  • -

#14 BobRodes  Icon User is offline

  • Your Friendly Local Curmudgeon
  • member icon

Reputation: 574
  • View blog
  • Posts: 2,989
  • Joined: 19-May 09

Re: problem in filling form on web

Posted 29 May 2012 - 10:05 AM

Please go back to post #8, read it carefully, and tell me whether you followed the suggestion given there or not. This code is completely unrelated.
Was This Post Helpful? 0
  • +
  • -

#15 yossi321  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 20
  • Joined: 14-March 12

Re: problem in filling form on web

Posted 29 May 2012 - 10:18 AM

I tried to use getobject after opening IE
Set wb1 = GetObject(, "InternetExplorer.application")
but there is an error "ActiveX component can't create object or return reference to this object (Error 429)"

so I got the object with CreateObject("Shell.Application")... like I post before
and I success to use wb1 to fill all the elements in the form, but the error "In order to sign up for a Google Account, you need to have Javascript enabled in your browser" is still exist
something happening when typing the passwords and not happening when fill its by code
Was This Post Helpful? 0
  • +
  • -

  • (2 Pages)
  • +
  • 1
  • 2