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

在firefox中装配selenium插件自定义rsel后缀文件

2012-12-26 
在firefox中安装selenium插件自定义rsel后缀文件在firefox中安装selenium IDE1、下载selenium IDE插件2、在f

在firefox中安装selenium插件自定义rsel后缀文件
在firefox中安装selenium IDE

1、下载selenium IDE插件

2、在firefox的tools下点击selenium IDE

3、选择Options下的options,点击Formats,点击add按钮,添加rsel

4、将rsel的source粘贴为

/* * Selenium on Rails RSelenese format for Selenium IDE *  * Written by Shinya Kasatani (kasatani at gmail.com) */load('formatCommandOnlyAdapter.js');function string(value) {if (value != null) {value = value.replace(/\\/g, '\\\\');value = value.replace(/"/g, '\"');value = value.replace(/\r/g, '\\r');value = value.replace(/\n/g, '\\n');return '"' + value + '"';} else {return '""';}}function underscore(text) {return text.replace(/[A-Z]/g, function(str) {return '_' + str.toLowerCase();});}function formatCommand(command) {var line = underscore(command.command);if (command.target) {line += ' ' + string(command.target);if (command.value) {line += ', ' + string(command.value);}}return line;}this.playable = false;

热点排行