Hi,
I'm trying to write a piece of code to login to a website, and then do some other stuff like pull data etc but I'll worry about that later.
I think I understand using this to enter the username and password, and then click the submit button
I understand to inspect element and get the correct IDs etc, but my issue is that I first need to click just a general large area of the first page to pop-up the login box. The area I have to click doesn't really seem to be a button or object, there's a couple of images within it but it's just a big huge area with a "LOGIN" graphic somewhere in the middle of it (my point is that it's not the LOGIN image itself, but a far larger area around it that can be clicked)
If I could somehow just say doc.MiddleOfThePage.click I think I'd be sorted but I can't figure that out.
Cheers
D
I'm trying to write a piece of code to login to a website, and then do some other stuff like pull data etc but I'll worry about that later.
I think I understand using this to enter the username and password, and then click the submit button
Code:
doc.GetElementByID("username").Value = User
doc.GetElementByID("password").Value = Pass
doc.GetElementByID("button").click
I understand to inspect element and get the correct IDs etc, but my issue is that I first need to click just a general large area of the first page to pop-up the login box. The area I have to click doesn't really seem to be a button or object, there's a couple of images within it but it's just a big huge area with a "LOGIN" graphic somewhere in the middle of it (my point is that it's not the LOGIN image itself, but a far larger area around it that can be clicked)
If I could somehow just say doc.MiddleOfThePage.click I think I'd be sorted but I can't figure that out.
Cheers
D
Last edited: