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

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

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

android - How to create dynamically Fragment pager adapter -