问题描述
您好所有的硒专家!
使用 WebDriverJS 和 ChromeDriver ,我目前正在构建自动化测试扩展安装过程在Chrome上,但我不能点击 Chrome扩展安装弹出窗口中的按钮,如下所示:
(我与Right Inbox无关,这只是我在Google上找到的图片)
我尝试了以下方法,但它不起作用,因为它不是一个警告框:
driver.switchTo()警报()接受()。;
有没有办法在上图中点击红圈圈的添加按钮?
经过探索,我确信在Selenium 2.0中这是不可能的。
Hello all the selenium experts out there!
Using WebDriverJS and ChromeDriver, I am currently building an automated tests for extension installation process on chrome, but I cannot click the button inside Chrome Extension Installation Popup, which looks like this:
(I am not related to Right Inbox. This is just an image I found on Google)
I tried the following, but it did not work since it is not an alert box:
driver.switchTo().alert().accept();
Is there a way to click that red-circled Add button in the image above?
After exploring, I am convinced that this is not possible in Selenium 2.0
这篇关于Selenium WebDriverJS - 测试Chrome扩展安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!