[英]Automation Testing can't bypass location popup
I'm doing automation testing and our portal has this new feature that needs to know the location of the user.我正在做自动化测试,我们的门户网站有这个需要知道用户位置的新功能。 How can i possibly click the 'Allow' button?
我怎么可能点击“允许”按钮?
If you are using Selenium with Chrome driver you can setup the preferences for the driver to automatically 'Allow' geolocation如果您将 Selenium 与 Chrome 驱动程序一起使用,您可以将驱动程序的首选项设置为自动“允许”地理位置
How to enable geo location by default using Selenium? 如何使用 Selenium 默认启用地理位置?
Try SendKeys({ESC});
试试
SendKeys({ESC});
it usually works with this kind of popup.它通常适用于这种弹出窗口。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.