【发布时间】:2019-10-08 14:39:25
【问题描述】:
运行 testCafe 时,我无法通过 AzureAD 进行身份验证/登录。
const testrole = Role(
'https://login.microsoftonline.com/',
async t => {
await t
.typeText(Selector('input').withAttribute('type', 'email'), *******)
.click(Selector('#idSIButton9'))
.typeText(Selector('input').withAttribute('type', 'password'), ********)
.click(Selector('#idSIButton9'));
},
{ preserveUrl: true }
);
上述步骤工作正常,但输入密码后我收到一条消息:
“无法登录 Outlook 帐户,错误:AADSTS900561:端点仅接受 POST 请求。收到 GET 请求。”
从我最初的搜索来看,这似乎与浏览器上的第 3 方 cookie 有关。但是,我目前无法找到解决方案。
知道我是如何解决这个问题的吗?
【问题讨论】:
-
我现在收到“您无法从这里到达那里”的消息。我正在使用我的 chrome 配置文件并允许主机和端口,但仍然无法通过此消息。
标签: testing automated-tests azure-active-directory e2e-testing testcafe