|
-
Sep 27th, 2000, 05:49 AM
#1
Thread Starter
New Member
I am writing an app which looks at a specific web page authored by a third party (therefore the page contents can change without warning).
My app needs to find the login name dialog and the password dialog, enter the text (which I could do with sendkeys i suppose) and click the GO button.
How do I find where the login name and password box is on the page?
-
Sep 27th, 2000, 07:55 AM
#2
Frenzied Member
I don't think you can do this in VB, I know of a kludge for DHTML in C++, but again, that's DHTML and C++, not HTML and VB. So I can't say.
Anyway, the position of the boxes doesn't matter, just their identifications in the HTML
I did some informal tests and found that the text boxes in a HTML form are not their own "controls" like in VB. This means that you can't use SendKeys.
I think your best bet would be to parse the HTML by hand and find out how it submits the data in the form, and emulate this from code.
If that helps, great. If not, just send me a reply.
-
Sep 27th, 2000, 08:08 AM
#3
Thread Starter
New Member
That was my thought too. Unforunately, parsing the web form is OK, but I need to (somehow) physically enter the text and "click" the on screen button as the site generates a lot of internal code (i.e. a session ID) which is unique every time you use it.
Using this technique, I can check the Doc..complete event and know when the web page has loaded. I then have access to the session ID's.
For this reason, I can't POST the info straight to the jsp - I have to fool the browser into thinking I have pressed the "go" button
-
Sep 27th, 2000, 08:32 AM
#4
Frenzied Member
hummm
Without seeing HTML and VB code I can't say for sure if its possible, but I think it might be able to be done. Anyway, I can't give a definitive answer w/ out code. Im bad that way. =P
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|