Sign in to follow this  
Followers 0
anyday

Script Browses To A Completely Different Page

10 posts in this topic

got a quick question. if i open internet explorer and manually type a link that i have a script going to it goes to a different page then the page the script goes to.

both urls are the same

im using _IENavigate in the script to goto this url

i dont know if its a cookie deal because lets say i goto https://login.mycompany.com in internet explorer

it gives me a login and password prompt.

well if i exit out of IE and run the script it goes to https://login.mycompany.com but goes to the page after asking for the login. but nowhere in the script do i have it set to login.

does it keep its own cookies or something?

Share this post


Link to post
Share on other sites



link = broken

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

the link is just an example

even if i gave the real link you would need a login / pass

Edited by anyday

Share this post


Link to post
Share on other sites

Maybe a bit of your code would assist in identifying if the problem is on the script end or the web end.

Share this post


Link to post
Share on other sites

I'm not following you here in this part:

i goto https://login.mycompany.com in internet explorer

it gives me a login and password prompt.

run the script it goes to https://login.mycompany.com but goes to the page after asking for the login.


Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl

MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model

Automate input type=file (Related)

Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded  Better Better?

IE.au3 issues with Vista - Workarounds

SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead?

Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble

Share this post


Link to post
Share on other sites

Have you tried logging off the webpage before running the script. It does sound like it is logging you in with a cookie.

Share this post


Link to post
Share on other sites

Dale,

Let me explain in more detail.

I start IE and browse to https://mycompany.com and it gives me a login and password prompt. so i quit my browser

----------------------------

then i run my script that all the code does it IENavigate to that same page but when the script goes to that page it does not give me a login and password prompt

Share this post


Link to post
Share on other sites

It's probably assigning a cookie with either

a) unlimited logins until you click "clear cookies"

:) x number of logins or until you click "clear cookies"

So, if you want to have to sign in every time you can make a script that deletes cookies for you, i s'pose.

~cdkid


AutoIt Console written in C#. Write au3 code right at the console :D_FileWriteToLineWrite to a specific line in a file.My UDF Libraries: MySQL UDF Library version 1.6 MySQL Database UDF's for AutoItI have stopped updating the MySQL thread above, all future updates will be on my SVN. The svn location is:kan2.sytes.net/publicsvn/mysqlnote: This will still be available, but due to my new job, and school hours, am no longer developing this udf.My business: www.hirethebrain.com Hire The Brain HireTheBrain.com Computer Consulting, Design, Assembly and RepairOh no! I've commited Scriptocide!

Share this post


Link to post
Share on other sites

Dale,

Let me explain in more detail.

I start IE and browse to https://mycompany.com and it gives me a login and password prompt. so i quit my browser

----------------------------

then i run my script that all the code does it IENavigate to that same page but when the script goes to that page it does not give me a login and password prompt

Are you talking about a username/password prompt in the HTML page or a popup? If you don't get the prompt are you getting access to the page as though you had logged in or what?

Dale


Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl

MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model

Automate input type=file (Related)

Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded  Better Better?

IE.au3 issues with Vista - Workarounds

SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead?

Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble

Share this post


Link to post
Share on other sites

its a user/pass in html page not a popup

and yes if i dont get the prompt i do get access.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0