英文:
Testing Facebook Login using testcafe
问题
我目前在使用TestCafe运行e2e测试时遇到了Facebook登录应用的问题。该应用已经正确配置,常规登录没有任何问题。然而,当TestCafe尝试使用Facebook登录的功能链接时,它会抛出如下所示的错误:
图片链接
我想知道在自动化测试中使用Facebook登录是否有任何限制或限制。是否可能是应用程序的配置存在问题导致了这个问题?
我已经将testcafe升级到最新版本,将Facebook API版本升级到17,并尝试了不同的浏览器。
英文:
I'm currently encountering an issue with the Facebook Login app while running e2e tests using TestCafe. The app has been properly configured, and regular logins work without any problems. However, when TestCafe attempts to use the functioning link for Facebook Login, it throws an error as shown in this screenshot:
image here
I'm wondering if there are any limitations or restrictions for using Facebook Login within automation tests. Could there be a problem with the app's configuration that's causing this issue?
I have updated testcafe to lastest version, updated facebook api version to 17, tried different browsers.
答案1
得分: 1
这个问题可能是由于需要使用HTTPS引起的。您可以尝试以下方式来解决:
英文:
This issue may be caused by necessity of using HTTPS. You can try one of the following ways to fix that:
- Use the Native Automation mode
- Set the hostname option to
localhost
- Specify the SSL options
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论