首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > Web前端 >

Selenium-webdriver系列课程(15)————使用已存在的profile启动firefox

2012-11-18 
Selenium-webdriver系列教程(15)————使用已存在的profile启动firefox关于firefox的profile,这里不想叙述太

Selenium-webdriver系列教程(15)————使用已存在的profile启动firefox
关于firefox的profile,这里不想叙述太多,只说一点,那就是通过profile我们可以去修改测试运行时firefox的具体配置,对于firefox的自动化测试来说是必须掌握的一个知识点。

使用selenium-webdirver操作profile的代码如下:

default_profile = Selenium::WebDriver::Firefox::Profile.from_name "default"# 启用本地事件default_profile.native_events = truedriver = Selenium::WebDriver.for(:firefox, :profile => default_profile)

热点排行