Yet ... Another auto-login problem !
Yet ... Another auto-login problem !
Yet ... Another auto-login problem !
Yet ... Another auto-login problem !
Yet ... Another auto-login problem !
Yet ... Another auto-login problem ! Yet ... Another auto-login problem ! Yet ... Another auto-login problem ! Yet ... Another auto-login problem ! Yet ... Another auto-login problem ! Yet ... Another auto-login problem ! Yet ... Another auto-login problem ! Yet ... Another auto-login problem !
Yet ... Another auto-login problem ! Yet ... Another auto-login problem !
Yet ... Another auto-login problem !
Go Back  Xtreme Visual Basic Talk > > > Yet ... Another auto-login problem !


Reply
 
Thread Tools Display Modes
  #1  
Old 06-24-2006, 09:39 AM
CrasH_BandicooT CrasH_BandicooT is offline
Freshman
 
Join Date: Dec 2005
Posts: 40
Default Yet ... Another auto-login problem !


Hi! i am making a project in VisualBasic 6.0 to auto-login in a webpage
i can write things at the textboxes if i direct it to the page that actually
contains the textboxes ... but i can't access those objects if they are in
a <iframes> containner

I can access things like the url of the <iframe> and the title but i can't
get to a single object that is inside it ..
the major problem is the fact that the page don't work alone without
the others <iframes> and gives me a big error !

i've tried all the maners to pass this problem but i'm getting nowhere
as anyone had this exact same problem !?

here is my first code... (don't work!)
Code:
With WebBrowser1
    .Navigate "http://pkgadmin.sapo.pt/pca/MainLogin.html"
    Do While .Busy: DoEvents: Loop
    Do While .ReadyState <> READYSTATE_COMPLETE: DoEvents: Loop
    WebBrowser1.Document.frames(2).Document.Forms(0).Item(1).Value = "as1647470@sapo"
    WebBrowser1.Document.frames(2).document.Forms(0).Item(2).Value = "10161488"
    WebBrowser1.Document.frames(2).document.All("validate").Click
End With
and here is another try i made after reading this thread:
Iframe values again
Code:
With WebBrowser1
    .Navigate "http://pkgadmin.sapo.pt/pca/MainLogin.html"
    Do While .Busy: DoEvents: Loop
    Do While .ReadyState <> READYSTATE_COMPLETE: DoEvents: Loop
    WebBrowser1.Document.frames ['pcaFrameContents'].Document.Forms(0).Item(1).Value = "Coiso"
end with
(this don't work either! )

hereis the page were i'm working...
HTML Code:
http://pkgadmin.sapo.pt/pca/MainLogin.html
sorry but it is in portuguese :P
any help would be greetly apreciated!
Reply With Quote
  #2  
Old 06-24-2006, 11:25 PM
JustinMs66's Avatar
JustinMs66 JustinMs66 is offline
Regular
 
Join Date: Jun 2006
Location: California
Posts: 62
Default

i know this dosn't help, but i too have been attempting such a project. i have tried many ways of loging in to a web page with no success. i am writing this reply to let people know that more that 1 person needs this.
__________________
using VB 6.0
Reply With Quote
  #3  
Old 06-24-2006, 11:32 PM
MikeJ's Avatar
MikeJYet ... Another auto-login problem ! MikeJ is offline
Retread

Retired Moderator
* Expert *
 
Join Date: Sep 2002
Location: Austin, Texas
Posts: 6,747
Default

Well, I don't know why it wouldn't work, except the second thing you've tried shouldn't work at all because it's not valid VB syntax. I'm surprised you aren't getting a syntax error. Are you suppressing errors with On Error Resume Next?
Code:
'This is not valid VB syntax 'It is using brackets [] instead of parentheses () and 'uses single-quotes '' instead of double-quotes "" WebBrowser1.Document.frames ['pcaFrameContents'].Document.Forms(0).Item(1).Value = "Coiso" ' 'Try this instead WebBrowser1.Document.Frames("pcaFrameContents").Document.Forms(0).Item(1).Value = "Coiso"
__________________
{ Lex Fori } { Locus Classicus } { Rutilus Scrinium }
Osculare pultem meam!
Reply With Quote
  #4  
Old 06-24-2006, 11:50 PM
DougT's Avatar
DougT DougT is offline
Ultimate Antique

Administrator
* Expert *
 
Join Date: Sep 2005
Location: Maldon,Essex, UK
Posts: 3,939
Default

When I try this:
Code:
With WebBrowser1 .Navigate "http://pkgadmin.sapo.pt/pca/MainLogin.html" Do While .Busy: DoEvents: Loop Do While .ReadyState <> READYSTATE_COMPLETE: DoEvents: Loop WebBrowser1.Document.frames(2).Document.Forms(0).Item(1).Value = "as1647470@sapo" WebBrowser1.Document.frames(2).document.Forms(0).Item(2).Value = "10161488" WebBrowser1.Document.frames(2).document.All("validate").Click End With
It returns "Os dados introduzidos não correspondem a uma identificação válida. Verifique se introduziu o username e a password correctos." which I guess means that the Username and / or Password is incorrect. The fields are being filled with the data you are supplying and the button is being clicked. Are you sure you have the login details correct ?
Edit by dougt: when I copy and paste the Username and Passwords into the page I get the same message

Regards
Doug
__________________
semel insanivimus omnes
S Data in context = Information, S Information in context = Knowledge, S Knowledge in context = Experience
S Experience in context = Wisdom= Data

Last edited by DougT; 06-25-2006 at 12:27 AM.
Reply With Quote
  #5  
Old 06-26-2006, 05:43 AM
CrasH_BandicooT CrasH_BandicooT is offline
Freshman
 
Join Date: Dec 2005
Posts: 40
Talking

:P
sorry about that .... it seems that the problem wasn't on the code but in myself
i was till 2:00 AM triyng to get this to work and i surelly was stressed out :P

anyway ... i now face a different problem ....
how can i get information that is inside the tags:

Code:
<tbody>
or

Code:
<table>
i can't figure out how to get those strings
can you help me out !?
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
Yet ... Another auto-login problem !
Yet ... Another auto-login problem !
Yet ... Another auto-login problem ! Yet ... Another auto-login problem !
Yet ... Another auto-login problem !
Yet ... Another auto-login problem !
Yet ... Another auto-login problem ! Yet ... Another auto-login problem ! Yet ... Another auto-login problem ! Yet ... Another auto-login problem ! Yet ... Another auto-login problem ! Yet ... Another auto-login problem ! Yet ... Another auto-login problem !
Yet ... Another auto-login problem !
Yet ... Another auto-login problem !
 
Yet ... Another auto-login problem !
Yet ... Another auto-login problem !
 
-->