hey i'm cameron mckenzie at cameronmcnz on twitter and i wanted to talk to you about uipath studio
and windows credentials and show you how you can integrate your uipath studio robots with windows
credentials so you can get those username and password securely and you don't have
to handle that secure stuff in your code so here's how to log into a website using uipath
studios get username password x activity and also access this windows credentials credentials vault
over here you can see i got a nice little username password application here it's got a little cheat
on it it says hey there's the username and password that will work so if you kind of log
in you'll get some details and some information in there if you go back to the page it'll log you out
by the way that's over at rpaccertified.com acme index.html so if anybody wants to bring that file
up and do this exercise yourself you can't but let's say i want to automate this i wanted to
do this using uipath studio while the way i would do it is first i would add an activity to open a
browser to that url and then of course i want to type into this username and password field
the username and password maybe even a username and password pulled from windows credentials so
the easiest way to do that is well i'm in uipath studio but i'm going to use a studio x activity so
i've got show studio x selected there and the one i'm going to use is called get user name
password x there it is right there i'm just going to drag this right into the do might even maximize
this page just so that it's a little easier to look at and it's going to say what's the
credential that you want to use well i don't have a credential set up already so i'm going to call
it the ui path example credential and then i'll throw a username and password in here and what
did we say we said hey mail at uipath.com is valid and we also said hey password will work
as well so i'm going to throw those in there as well you can show the password if you want
but now i've got this associated with this uipath activity when this runs it's actually going to
take that username and password and store it in the credentials manager and in the future if it
runs again it will pull it out of that credentials manager okay so now of course we've got the save
for later variable i'm going to name that press what control k right there and give that the name
credentials that seems like a sensible name and then of course i've got this web page open and
let's see if i've opened it up in firefox i just tend to like to use firefox for development while
from day to day stuff i use i use chrome and here we go we can actually see this now that's
the whole thing loaded up over there in firefox i'm actually going to just do a little razzle
dazzle here so i can share the screen a little bit in order to get the next step going here
what i need to do is i need to say i want to take that credential and i want to type the username
in here and the password in there and so that's just a matter of using the type into activity the
ui automation type into click over here what do we want to type in there well i'm going to select it
into that field right there i want to type in credentials dot
usernames then that's going to throw the username in and of course the password it's
going to be exactly the same thing except it's going to be different and so i'll indicate and
screen the password there and of course it's not credentials.username but it's credentials.
password there it is right there and of course the login we want to click so we're going to have
to add the click activity click click click and that's going to be a mouse click on ui automation
what are we going to click we're going to click this sign in button and hopefully when this all
runs that will sign us into the website using our credential that's going to be saved over here now
notice i call this uipath example credential you do not see uipath credential right there even if i
flip back and forth and actually look at that it's just been added in i thought it wouldn't add into
runtime but i just learned something myself and there you go just as soon as i added in there that
credential is now stored permanently in windows credentials boy uipath studio surprises me how
awesome it is okay well let's see this thing in action i'm going to close this browser window and
let it start fresh so i'm going to say let's debug this application boom here it goes
firefox of course waste my time by installing some updates i'm sorry about that
but now it's going to open up firefox in this firefox browser window
i get this window that comes up that says hey enter your credentials or accept the credentials
that have already been stored if i update this it will save it in the windows credentials manager
it now clicks ok it logs me in and i'm into the website and there you go that's how easy it is to
use uipath studio in a uipath studio x activity to save a credential and subsequently use that
credential that username and password to log in to a website and again if you want to use that
website yourself you can grab that form it's over on rpaccertified.com and there you go that's how
easy it is to use uipath studio and integrate it with credentials manager now if you enjoyed this
tutorial head over to the server side.com i'm the editor-in-chief over there that's a great
tutorials on uipath studio orchestrator you name it if you're interested in my personal antics you
can always follow me on twitter cameronmcnz and do the subscribe thing on the youtube