如何使用 selenium WebDriver 自动化 salesforce 登录 OTP 功能? [英] How to Automate the salesforce login OTP feature using selenium WebDriver?
问题描述
如何使用 selenium WebDriver 自动化 salesforce 登录 OTP 功能?
How to automate the salesforce login OTP feature using selenium WebDriver ?
已经尝试过这个选项 - 手动登录并读取 cookie 并在使用 selenium webdriver 登录时加载 cookie.
Already tried this option - logged in manually and read the cookies and load the cookies while login using selenium webdriver.
推荐答案
绕过otp/2fa的最简单方法是将运行selenium的服务器的IP地址添加到Salesforce的可信IP范围内
the simplest way to bypass otp/2fa is to add IP address of server where selenium is run to trusted IP range in Salesforce
在设置菜单中,点击Security Controls
-> Network Access
-> 输入selenium服务器的IP地址范围.
In Setup menu, click Security Controls
-> Network Access
-> enter the IP address ranges of selenium server.
这篇关于如何使用 selenium WebDriver 自动化 salesforce 登录 OTP 功能?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!