Jump to content
Sign in to follow this  
MarkH

Enter authentication details twice

Recommended Posts

I have to enter the Active Directory authentication details twice for an internal site, due to https.

First login is fine, it sometimes fails on the second one, as credentials are not filled in properly. Which i suspect is due to timing.

I have tried to slow things down, but it is failing on the  "SendKeyDelay"  ...? am i using the wrong way to slow things down ?

 

see code i am using :

send("name@mysite.com")
send("{TAB}")
send("mypassword")
send("{ENTER}")
opt(("SendKeyDelay", 10) 
send("name@mysite.com")
send("{TAB}")
send("mypassword")
send("{ENTER}")

Share this post


Link to post
Share on other sites

Send should be used as a last resort.

Look into ControlSetText and ControlClick

oops, just noticed you said https so this is a website.

There is an extra ( in the opt line you have shown.  other than that if you can use Internet explorer there are built in functions _IE... that should be able to work for you

Edited by BigDaddyO

hmm... I guess I have to have a signature...

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...