问题
Im working on an application in IE that requires the authentication pop-up always to be displayed. For this, as a prerequisite, we need to manually set the below every time I initiate my test: Settings > Internet Options > Security > Custom Level > User authentication = Prompt for username password.
Is there a way to automate this setting change?
- Tried searching the usage of Robot class to click on the Settings icon. I did not find any (We are using this robot class to enter the credentials - all well here)
- Seen solution to alter regedit (A100 to point 2000 in Zone setting of HKCU). But this is not allowed in our office.
Any solution for this problem would be of much help. Thanks.
来源:https://stackoverflow.com/questions/62678353/how-do-we-click-the-ie-settings-button-using-selenium-java