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

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -