????????????????????????

??????????????????????????????????????о???????????????????????????????????????????????????????????????

????1.???????(??????????????Selenium IDE????JavaScript ?????web???DOM?????в??????????????????????????????????????API???????Selenium?????????????(prototype)???ж????????????)

????eg:Selenium API ??doClick????(this.browserbot???????????)

????Selenium.prototpe.doClick=function(locator){

????/**

????*Clicks on a link??button??checkbox or radio button.If the click action causes a new

????*page to load (like a link usually does)??call waitForPageToLoad.

????*

????*@param locator an element locator

????*

????*/

????var element=this.browserbot.findElement(locator);

????this.browserbot.clickElement(element);

????}

????1.2???????

???????selenium-ide.jar????????′??????selenium-api.js?????????????????

????///Create a sample for hello world

????Selenium.prototype.doHelloworld=function(){

????throw new SeleniumError("Hello world");

????};

????Selenium RC ????HTTP????(HTTP Proxy).??????????????????????????????????????÷????????????????????????????????????????????????????

?????????selenium RC server ???????HTTPS??IE????????firefox??????????????(Profile).

????Selenium RC ???selenium-1.0-beta-1sslSupport?μ?cybervillainsCA.cer????IE

????2.GUI???????

????3.DOM??????? (ieinspector)

????4.???????(?????????????????????????)

????5.???????????(????????????????????????????????????????????У????????????????????б??)