Selenium WebDriverJS - 测试 Chrome 扩展安装 [英] Selenium WebDriverJS - Testing Chrome Extension Installation

查看:39
本文介绍了Selenium WebDriverJS - 测试 Chrome 扩展安装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

各位硒专家大家好!

使用 WebDriverJSChromeDriver,我目前正在为 chrome 上的扩展程序安装过程构建自动化测试,但我无法单击 Chrome 扩展程序安装弹出窗口中的按钮,看起来像这样:

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:

(我与 Right Inbox 无关.这只是我在 Google 上找到的一张图片)

(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?

推荐答案

经过探索,我确信这在 Selenium 2.0 中是不可能的

After exploring, I am convinced that this is not possible in Selenium 2.0

这篇关于Selenium WebDriverJS - 测试 Chrome 扩展安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆