---
title: "selenium的杂记"
author: "tanleihaoren"
date: "2008-09-27T11:00:29Z"
tags: []
slug: "selenium"
draft: false
lastmod: "2008-09-27T11:00:29Z"
id: 247394
url: "https://chengdu.iteye.com/blog/247394"
---

1 . 使用selenium测试ajax功能的诡异问题

 

    最近使用selenium测试了项目的ajax功能,在IE和Firefox下使用selenium core的方式测试，ajax功能均显示正常。而使用selenium RC(with java)测试Ajax的话，则只能使用Firefox！IE下老是不能触发ajax事件，不知道为什么，很诡异！

 

2\. 异常：firefox refused shutdown while preparing a profile

    异常：firefox couldn't be found in the path

    这种情况多是由于你安装了多个FF或者安装路径不是默认的！ 

   必杀技2招：(重装FF就不必了,嘻嘻)

   一. 在path环境变量中添加上你要使用的FF的全路径。

   二. 在selenium填写browser的参数时 " \*firefox  全路径" 。