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

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

问题描述

您好所有的硒专家!



使用 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扩展安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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