Advertisement
Guest User

Untitled

a guest
Sep 24th, 2016
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. 'Retrieve username from windows login session
  2. objUserName= CreateObject("WScript.Network").UserName
  3. 'Retrieve password from Environment variable 'AUTPwd'
  4. objPassword= CreateObject("WScript.Shell").Environment("USER").Item("AUTPwd")
  5. 'Set the username on AUT
  6. Browser("").Page("").WebEdit("username").Set objUserName
  7. 'Set the password on AUT
  8. Browser("").Page("").WebEdit("password").SetSecure objPassword
  9. 'Click on login button
  10. Browser("").Page("").WebButton("Login").Click
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement