selenium - Can I encrypt password in java to counteract a website popup? -
i'm running tests using selenium web driver. there popup occurs before web page loads up. asking username , password. don't want hardcode password code. there way can hide in code encrypt still runs test , password isn't exposed?
i have code:
@step public void gotosurveymanager(){ getdriver().get("http://user:password@website.surveymanager.sys.networks.local"); }
as understand store encrypted password in code , encryption procedure , key in same code? obfuscation no security. of course store key in seperate file can password, too.
i don't know setting , how start tests maybe pass credentials via command line paramters of test application.
Comments
Post a Comment