How do we click the IE Settings button using selenium java?

时间秒杀一切 提交于 2021-01-29 08:32:34

问题


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?

  1. 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)
  2. 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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!