51Testing软件测试论坛

 找回密码
 (注-册)加入51Testing

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 3128|回复: 0
打印 上一主题 下一主题

Creating Firefox profile for your Selenium RC tests

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2010-7-1 00:27:38 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
Why create a new firefox profile for Selenium?

We create firefox profile for Selenium RC tests, so we can set light configurations to it, which later on we’ll be using to run our Selenium scripts FASTER.

How to create Firefox profile for your Selenium?

   1. Make sure all your firefox instance are closed
   2. Click Start>Run
   3. Type “firefox.exe -ProfileManager -no-remote”
   4. Select “Create Profile” (i.e. selenium)
   5. Click “Next”
   6. Enter new profile name
   7. Select a directory folder to store your new profile
   8. Click “Finish”
   9. Select “Don’t ask at startup”
  10. Click “Start Firefox” and configure settings based on suggestion below***
  11. Set Profile back to “default” (enable you to use your previous settings on your browser)
  12. Add -firefoxProfileTemplate command line option as you start the Selenium Server

java -jar selenium-server.jar -firefoxProfileTemplate “<Selenium Profile Directory>”

*** Suggested settings for your Selenium Profile

   1. From “View\Toolbars” tab, uncheck “Bookmarks Toolbar”
   2. Right click from toolbar and click “Customize”
   3. Remove “Google search” by dragging it to the “Customize Toolbar” window
   4. From the “Customize Toolbar” window, click “Use Small Icons” check box then hit “Done”
   5. Click “Tools\Options” then set the following:
      a. “Main” tab
      - set Home Page to “about:blank”
      - uncheck “Show the Downloads..” option
      b. “Tabs” tab
      - Select “a new window” for new pages
      - Uncheck all warning options
      c. “Content” tab
      - uncheck “Block pop-up” windows option
      d. “Privacy” tab
      - uncheck all “History” options
      e. “Security” tab
      - uncheck all “Security” options
      - click “Settings” and uncheck all warning options
      f. “Advanced” tab
      - Uncheck “autoscrolling” option from “General” tab
      - uncheck “warn me …” and “Ssearch Engines”option from “Update” tab
   6. From “Tools\Add-ons” install the following:
      - Firebug: allows you to edit, debug, and monitor CSS, HTML, and JavaScript on your application under test
      - Selenium IDE: allows you to record, edit, and debug Selenium tests
      - ScreenGrab: saves entire webpages as images.
   7. From the address bar type “about:config” and add the following by right-click anywhere on the page and selecting “new”
      - extensions.update.notifyUser (type=boolean; value=false)
      - extensions.newAddons (type=boolean; value=false)
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

本版积分规则

关闭

站长推荐上一条 /1 下一条

小黑屋|手机版|Archiver|51Testing软件测试网 ( 沪ICP备05003035号 关于我们

GMT+8, 2024-11-24 07:23 , Processed in 0.067388 second(s), 28 queries .

Powered by Discuz! X3.2

© 2001-2024 Comsenz Inc.

快速回复 返回顶部 返回列表