- 浏览: 774082 次
- 性别:
- 来自: 杭州
-
文章分类
最新评论
-
webcover:
最新的中文网络记事本: 破笔记
网络记事本:http://w ...
五个最佳的免费网络记事本 -
fred_nxh:
很好,长见识了
java中堆(heap)和堆栈(stack)有什么区别 -
efeige:
兄弟,请问一下,为什么我的2003系统 网站属性 里面没有“服 ...
启用IIS Gzip 页面压缩技术 加速网页的浏览速度 -
252401762:
同样的问题啊,不知道楼主是否已经转做售前了
售前和 开发的选择 -
yuan:
膜拜玩静电的现在呢?
来回顾一下,当年的“发烧史”吧:
Selenium中文手册
一、 Commands (命令)
Action
对当前状态进行操作
失败时,停止测试
Assertion
校验是否有产生正确的值
Element Locators
指定HTML中的某元素
Patterns
用于模式匹配
1. Element Locators (元素定位器)
id=id
id locator 指定HTML中的唯一id的元素
name=name
name locator指定 HTML中相同name的元素中的第一个元素
identifier=id
identifier locator 首先查找HTML是否存在该id的元素, 若不存在,查找第一个该name的元素
dom=javascrīptExpression
dom locator用Javascrīpt表达式来定位HTML中的元素,注意必须要以"document"开头
例如:
dom=document.forms['myForm'].myDropdown
dom=document.images[56]
xpath=xpathExpression
xpath locator用 XPath 表达式来定位HTML中的元素,必须注意要以"//"开头
例如:
xpath=//img[@alt='The image alt text']
xpath=//table[@id='table1']//tr[4]/td[2]
link=textPattern
link locator 用link来选择HTML中的连接或锚元素
例如:
link=The link text
在没有locator前序的情况下 Without a locator prefix, Selenium uses:
如果以"document."开头,则默认是使用 dom locator,如果是以"//"开头,则默认使用xpath locator,其余情况均认作identifier locator
2. String Matching Patterns (字符串匹配模式)
glob:patthern
glob模式,用通配符"*"代表任意长度字符,"?"代表一个字符
regexp:regexp
正则表达式模式,用Javascrīpt正则表达式的形式匹配字符串
exact:string
精确匹配模式,精确匹配整个字符串,不能用通配符
在没有指定字符串匹配前序的时候,selenium 默认使用golb 匹配模式
3. Select Option Specifiers (Select选项指定器)
label=labelPattern
通过匹配选项中的文本指定选项
例如:label=regexp:^[Oo]ther
value=valuePattern
通过匹配选项中的值指定选项
例如:value=other
id=id
通过匹配选项的id指定选项
例如: id=option1
index=index
通过匹配选项的序号指定选项,序号从0开始
例如:index=2
在没有选项选择前序的情况下,默认是匹配选项的文本
二、 Actions
描述了用户所会作出的操作。
Action 有两种形式: action和actionAndWait, action会立即执行,而actionAndWait会假设需要较长时间才能得到该action的相响,而作出等待,open则是会自动处理等待时间。
click
click(elementLocator)
- 点击连接,按钮,复选和单选框
- 如果点击后需要等待响应,则用"clickAndWait"
- 如果是需要经过Javascrīpt的alert或confirm对话框后才能继续操作,则需要调用verify或assert来告诉Selenium你期望对对话框进行什么操作。 click aCheckbox
clickAndWait submitButton
clickAndWait anyLink
open
open(url)
- 在浏览器中打开URL,可以接受相对和绝对路径两种形式
- 注意:该URL必须在与浏览器相同的安全限定范围之内 open /mypage
open http://localhost/
type
type(inputLocator, value)
- 模拟人手的输入过程,往指定的input中输入值
- 也适合给复选和单选框赋值
- 在这个例子中,则只是给钩选了的复选框赋值,注意,而不是改写其文本 type nameField John Smith
typeAndWait textBoxThatSubmitsOnChange newValue
select
select(dropDownLocator, optionSpecifier)
- 根据optionSpecifier选项选择器来选择一个下拉菜单选项
- 如果有多于一个选择器的时候,如在用通配符模式,如"f*b*",或者超过一个选项有相同的文本或值,则会选择第一个匹配到的值 select dropDown Australian Dollars
select dropDown index=0
selectAndWait currencySelector value=AUD
selectAndWait currencySelector label=Auslian D*rs
goBack,close
goBack()
模拟点击浏览器的后退按钮
close()
模拟点击浏览器关闭按钮
selectWindow
select(windowId)
- 选择一个弹出窗口
- 当选中那个窗口的时候,所有的命令将会转移到那窗口中执行 selectWindow myPopupWindow
selectWindow null
pause
pause(millisenconds)
- 根据指定时间暂停Selenium脚本执行
- 常用在调试脚本或等待服务器段响应时 pause 5000
pause 2000
fireEvent
fireEvent(elementLocatore,evenName)
模拟页面元素事件被激活的处理动作 fireEvent textField focus
fireEvent dropDown blur
waitForCondition
waitForCondition(JavascrīptSnippet,time)
- 在限定时间内,等待一段Javascrīpt代码返回true值,超时则停止等待 waitForCondition var value=selenium.getText("foo"); value.match(/bar/); 3000
waitForValue
waitForValue(inputLocator, value)
- 等待某input(如hidden input)被赋予某值,
- 会轮流检测该值,所以要注意如果该值长时间一直不赋予该input该值的话,可能会导致阻塞 waitForValue finishIndication isfinished
store,stroreValue
store(valueToStore, variablename)
保存一个值到变量里。
该值可以由自其他变量组合而成或通过Javascrīpt表达式赋值给变量 store Mr John Smith fullname
store $.{title} $.{firstname} $.{suname} fullname
store javascrīpt.{Math.round(Math.PI*100)/100} PI
storeValue inputLocator variableName
把指定的input中的值保存到变量中
storeValue userName userID
type userName $.{userID}
storeText, storeAttribute
storeText(elementLocator, variablename)
把指定元素的文本值赋予给变量 storeText currentDate expectedStartDate
verifyValue startDate $.{expectedStartDate}
storeAttribute(.{}elementLocator@attributeName,variableName.{})
把指定元素的属性的值赋予给变量
storeAttribute input1@class classOfInput1
verifyAttribute input2@class $.{classOfInput1}
chooseCancel.., answer..
chooseCancelOnNextConfirmation()
- 当下次Javascrīpt弹出confirm对话框的时候,让selenium选择Cancel
- 如果没有该命令时,遇到confirm对话框Selenium默认返回true,如手动选择OK按钮一样 chooseCancelOnNextConfirmation
- 如果已经运行过该命令,当下一次又有confirm对话框出现时,也会同样地再次选择Cancel
answerOnNextPrompt(answerString)
- 在下次Javascrīpt弹出prompt提示框时,赋予其anweerString的值,并选择确定
answerOnNextPrompt Kangaroo
三、 Assertions
允许用户去检查当前状态。两种模式: Assert 和 Verify, 当Assert失败,则退出测试;当Verify失败,测试会继续运行。
assertLocation, assertTitle
assertLocation(relativeLocation)
判断当前是在正确的页面 verifyLocation /mypage
assertLocation /mypage
assertTitle(titlePattern)
检查当前页面的title是否正确 verifyTitle My Page
assertTitle My Page
assertValue
assertValue(inputLocator, valuePattern)
- 检查input的值
- 对于 checkbox或radio,如果已选择,则值为"on",反之为"off" verifyValue nameField John Smith
assertValue document.forms[2].nameField John Smith
assertSelected, assertSelectedOptions
assertSelected(selectLocator, optionSpecifier)
检查select的下拉菜单中选中的选型是否和optionSpecifer(Select选择选项器)的选项相同 verifySelected dropdown2 John Smith
verifySelected dorpdown2 value=js*123
assertSelected document.forms[2].dropDown label=J*Smith
assertSelected document.forms[2].dropDown index=0
assertSelectOptions(selectLocator, optionLabelList)
- 检查下拉菜单中的选项的文本是否和optionLabelList相同
- optionLabelList是以逗号分割的一个字符串 verifySelectOptions dropdown2 John Smith,Dave Bird
assertSelectOptions document.forms[2].dropdown Smith,J,Bird,D
assertText
assertText(elementLocator,textPattern)
- 检查指定元素的文本
- 只对有包含文本的元素生效
- 对于Mozilla类型的浏览器,用textContent取元素的文本,对于IE类型的浏览器,用innerText取元素文本 verifyText statusMessage Successful
assertText //div[@id='foo']//h1 Successful
assertTextPresent, assertAttribute
assertTextPresent(text)
检查在当前给用户显示的页面上是否有出现指定的文本 verifyTextPresent You are now logged in
assertTextPresent You are now logged in
assertAttribute(.{}elementLocator@attributeName.{}, ValuePattern)
检查当前指定元素的属性的值 verifyAttribute txt1@class bigAndBlod
assertAttribute document.images[0]@alt alt-text
verifyAttribute //img[@id='foo']/alt alt-text
assertTextPresent, etc.
assertTextPresent(text)
assertTextNotPresent(text)
assertElementPresent(elementLocator) verifyElementPresent submitButton
assertElementPresent //img[@alt='foo'] assertElementNotPresent(elementLocator)
assertTable
assertTable(cellAddress, valuePattern)
- 检查table里的某个cell中的值
- cellAddress的语法是tableName.row.column, 注意行列序号都是从0开始 verifyTable myTable.1.6 Submitted
assertTable results0.2 13
assertVisible, nonVisible
assertVisible(elementLocator)
- 检查指定的元素是否可视的
- 隐藏一个元素可以用设置css的'visibility'属性为'hidden',也可以设置'display'属性为'none' verfyVisible postcode
assertVisible postcode
assertNotVisible(elementLocator) verfyNotVisible postcode
assertNotVisible postcode
Editable, non-editable
assertEditable(inputLocator)
检查指定的input是否可以编辑 verifyEditable shape
assertEditable colour
assertNotEditable(inputLocator)
检查指定的input是否不可以编辑
assertAlert
assertAlert(messagePattern)
- 检查Javascrīpt是否有产生带指定message的alert对话框
- alert产生的顺序必须与检查的顺序一致
- 检查alert时会产生与手动点击'OK'按钮一样的效果。如果一个alert产生了,而你却没有去检查它,selenium会在下个action中报错。
- 注意:Selenium 不支持 Javascrīpt 在onload()事件时 调用alert();在这种情况下,Selenium需要你自己手动来点击OK.
assertConfirmation
assertConfirmation(messagePattern)
- 检查Javascrīpt是否有产生带指定message的confirmation对话框和alert情况一样,confirmation对话框也必须在它们产生的时候进行检查
- 默认情况下,Selenium会让confirm() 返回true, 相当于手动点击Ok按钮的效果。你能够通过chooseCancelOnNextConfirmation命令让confirm()返回false.同样地,如果一个cofirmation对话框出现了,但你却没有检查的话,Selenium将会在下个action中报错
- 注意:在Selenium的环境下,confirmation对话框框将不会再出现弹出显式对话框
- 注意:Selenium不支持在onload()事件时调用confirmation对话框,在这种情况下,会出现显示confirmatioin对话框,并需要你自己手动点击。
assertPrompt
assertPrompt(messagePattern)
- 检查Javascrīpt是否有产生带指定message的Prompt对话框
- 你检查的prompt的顺序Prompt对话框产生的顺序必须相同
- 必须在verifyPrompt之前调用answerOnNextPrompt命令
- 如果prompt对话框出现了但你却没有检查,则Selenium会在下个action中报错 answerOnNextPrompt Joe
click id=delegate
verifyPrompt Delegate to who?
四、 Parameters and Variables
参数和变量的声明范围由简单的赋值到Javascrīpt表达式赋值。
Store,storeValue 和storeText 为下次访问保存值。
在Selenium内部是用一个叫storeVars的map来保存变量名。
Variable Substitution 变量替换
提供了一个简单的方法去访问变量,语法 $.{xxx} store Mr title
storeValue nameField surname
store $.{title} $.{suname} fullname
type textElement Full name is: $.{fullname}
Javascrīpt Evaluation Javascrīpt赋值
你能用Javascrīpt来构建任何你所需要的值。
这个参数是以javascrīpt开头,语法是 javascrīpt.{'with a trailing'}。
可以通过Javascrīpt表达式给某元素赋值。 store javascrīpt.{'merchant'+(new Date()).getTime()} merchantId
type textElement javascrīpt.{storedVars['merchantId'].toUpperCase()}
Generating Unique values 产生唯一值.
问题:你需要唯一的用户名
解决办法: 基于时间来产生用户名,如'fred'+(new Date().getTime())
一、 Commands (命令)
Action
对当前状态进行操作
失败时,停止测试
Assertion
校验是否有产生正确的值
Element Locators
指定HTML中的某元素
Patterns
用于模式匹配
1. Element Locators (元素定位器)
id=id
id locator 指定HTML中的唯一id的元素
name=name
name locator指定 HTML中相同name的元素中的第一个元素
identifier=id
identifier locator 首先查找HTML是否存在该id的元素, 若不存在,查找第一个该name的元素
dom=javascrīptExpression
dom locator用Javascrīpt表达式来定位HTML中的元素,注意必须要以"document"开头
例如:
dom=document.forms['myForm'].myDropdown
dom=document.images[56]
xpath=xpathExpression
xpath locator用 XPath 表达式来定位HTML中的元素,必须注意要以"//"开头
例如:
xpath=//img[@alt='The image alt text']
xpath=//table[@id='table1']//tr[4]/td[2]
link=textPattern
link locator 用link来选择HTML中的连接或锚元素
例如:
link=The link text
在没有locator前序的情况下 Without a locator prefix, Selenium uses:
如果以"document."开头,则默认是使用 dom locator,如果是以"//"开头,则默认使用xpath locator,其余情况均认作identifier locator
2. String Matching Patterns (字符串匹配模式)
glob:patthern
glob模式,用通配符"*"代表任意长度字符,"?"代表一个字符
regexp:regexp
正则表达式模式,用Javascrīpt正则表达式的形式匹配字符串
exact:string
精确匹配模式,精确匹配整个字符串,不能用通配符
在没有指定字符串匹配前序的时候,selenium 默认使用golb 匹配模式
3. Select Option Specifiers (Select选项指定器)
label=labelPattern
通过匹配选项中的文本指定选项
例如:label=regexp:^[Oo]ther
value=valuePattern
通过匹配选项中的值指定选项
例如:value=other
id=id
通过匹配选项的id指定选项
例如: id=option1
index=index
通过匹配选项的序号指定选项,序号从0开始
例如:index=2
在没有选项选择前序的情况下,默认是匹配选项的文本
二、 Actions
描述了用户所会作出的操作。
Action 有两种形式: action和actionAndWait, action会立即执行,而actionAndWait会假设需要较长时间才能得到该action的相响,而作出等待,open则是会自动处理等待时间。
click
click(elementLocator)
- 点击连接,按钮,复选和单选框
- 如果点击后需要等待响应,则用"clickAndWait"
- 如果是需要经过Javascrīpt的alert或confirm对话框后才能继续操作,则需要调用verify或assert来告诉Selenium你期望对对话框进行什么操作。 click aCheckbox
clickAndWait submitButton
clickAndWait anyLink
open
open(url)
- 在浏览器中打开URL,可以接受相对和绝对路径两种形式
- 注意:该URL必须在与浏览器相同的安全限定范围之内 open /mypage
open http://localhost/
type
type(inputLocator, value)
- 模拟人手的输入过程,往指定的input中输入值
- 也适合给复选和单选框赋值
- 在这个例子中,则只是给钩选了的复选框赋值,注意,而不是改写其文本 type nameField John Smith
typeAndWait textBoxThatSubmitsOnChange newValue
select
select(dropDownLocator, optionSpecifier)
- 根据optionSpecifier选项选择器来选择一个下拉菜单选项
- 如果有多于一个选择器的时候,如在用通配符模式,如"f*b*",或者超过一个选项有相同的文本或值,则会选择第一个匹配到的值 select dropDown Australian Dollars
select dropDown index=0
selectAndWait currencySelector value=AUD
selectAndWait currencySelector label=Auslian D*rs
goBack,close
goBack()
模拟点击浏览器的后退按钮
close()
模拟点击浏览器关闭按钮
selectWindow
select(windowId)
- 选择一个弹出窗口
- 当选中那个窗口的时候,所有的命令将会转移到那窗口中执行 selectWindow myPopupWindow
selectWindow null
pause
pause(millisenconds)
- 根据指定时间暂停Selenium脚本执行
- 常用在调试脚本或等待服务器段响应时 pause 5000
pause 2000
fireEvent
fireEvent(elementLocatore,evenName)
模拟页面元素事件被激活的处理动作 fireEvent textField focus
fireEvent dropDown blur
waitForCondition
waitForCondition(JavascrīptSnippet,time)
- 在限定时间内,等待一段Javascrīpt代码返回true值,超时则停止等待 waitForCondition var value=selenium.getText("foo"); value.match(/bar/); 3000
waitForValue
waitForValue(inputLocator, value)
- 等待某input(如hidden input)被赋予某值,
- 会轮流检测该值,所以要注意如果该值长时间一直不赋予该input该值的话,可能会导致阻塞 waitForValue finishIndication isfinished
store,stroreValue
store(valueToStore, variablename)
保存一个值到变量里。
该值可以由自其他变量组合而成或通过Javascrīpt表达式赋值给变量 store Mr John Smith fullname
store $.{title} $.{firstname} $.{suname} fullname
store javascrīpt.{Math.round(Math.PI*100)/100} PI
storeValue inputLocator variableName
把指定的input中的值保存到变量中
storeValue userName userID
type userName $.{userID}
storeText, storeAttribute
storeText(elementLocator, variablename)
把指定元素的文本值赋予给变量 storeText currentDate expectedStartDate
verifyValue startDate $.{expectedStartDate}
storeAttribute(.{}elementLocator@attributeName,variableName.{})
把指定元素的属性的值赋予给变量
storeAttribute input1@class classOfInput1
verifyAttribute input2@class $.{classOfInput1}
chooseCancel.., answer..
chooseCancelOnNextConfirmation()
- 当下次Javascrīpt弹出confirm对话框的时候,让selenium选择Cancel
- 如果没有该命令时,遇到confirm对话框Selenium默认返回true,如手动选择OK按钮一样 chooseCancelOnNextConfirmation
- 如果已经运行过该命令,当下一次又有confirm对话框出现时,也会同样地再次选择Cancel
answerOnNextPrompt(answerString)
- 在下次Javascrīpt弹出prompt提示框时,赋予其anweerString的值,并选择确定
answerOnNextPrompt Kangaroo
三、 Assertions
允许用户去检查当前状态。两种模式: Assert 和 Verify, 当Assert失败,则退出测试;当Verify失败,测试会继续运行。
assertLocation, assertTitle
assertLocation(relativeLocation)
判断当前是在正确的页面 verifyLocation /mypage
assertLocation /mypage
assertTitle(titlePattern)
检查当前页面的title是否正确 verifyTitle My Page
assertTitle My Page
assertValue
assertValue(inputLocator, valuePattern)
- 检查input的值
- 对于 checkbox或radio,如果已选择,则值为"on",反之为"off" verifyValue nameField John Smith
assertValue document.forms[2].nameField John Smith
assertSelected, assertSelectedOptions
assertSelected(selectLocator, optionSpecifier)
检查select的下拉菜单中选中的选型是否和optionSpecifer(Select选择选项器)的选项相同 verifySelected dropdown2 John Smith
verifySelected dorpdown2 value=js*123
assertSelected document.forms[2].dropDown label=J*Smith
assertSelected document.forms[2].dropDown index=0
assertSelectOptions(selectLocator, optionLabelList)
- 检查下拉菜单中的选项的文本是否和optionLabelList相同
- optionLabelList是以逗号分割的一个字符串 verifySelectOptions dropdown2 John Smith,Dave Bird
assertSelectOptions document.forms[2].dropdown Smith,J,Bird,D
assertText
assertText(elementLocator,textPattern)
- 检查指定元素的文本
- 只对有包含文本的元素生效
- 对于Mozilla类型的浏览器,用textContent取元素的文本,对于IE类型的浏览器,用innerText取元素文本 verifyText statusMessage Successful
assertText //div[@id='foo']//h1 Successful
assertTextPresent, assertAttribute
assertTextPresent(text)
检查在当前给用户显示的页面上是否有出现指定的文本 verifyTextPresent You are now logged in
assertTextPresent You are now logged in
assertAttribute(.{}elementLocator@attributeName.{}, ValuePattern)
检查当前指定元素的属性的值 verifyAttribute txt1@class bigAndBlod
assertAttribute document.images[0]@alt alt-text
verifyAttribute //img[@id='foo']/alt alt-text
assertTextPresent, etc.
assertTextPresent(text)
assertTextNotPresent(text)
assertElementPresent(elementLocator) verifyElementPresent submitButton
assertElementPresent //img[@alt='foo'] assertElementNotPresent(elementLocator)
assertTable
assertTable(cellAddress, valuePattern)
- 检查table里的某个cell中的值
- cellAddress的语法是tableName.row.column, 注意行列序号都是从0开始 verifyTable myTable.1.6 Submitted
assertTable results0.2 13
assertVisible, nonVisible
assertVisible(elementLocator)
- 检查指定的元素是否可视的
- 隐藏一个元素可以用设置css的'visibility'属性为'hidden',也可以设置'display'属性为'none' verfyVisible postcode
assertVisible postcode
assertNotVisible(elementLocator) verfyNotVisible postcode
assertNotVisible postcode
Editable, non-editable
assertEditable(inputLocator)
检查指定的input是否可以编辑 verifyEditable shape
assertEditable colour
assertNotEditable(inputLocator)
检查指定的input是否不可以编辑
assertAlert
assertAlert(messagePattern)
- 检查Javascrīpt是否有产生带指定message的alert对话框
- alert产生的顺序必须与检查的顺序一致
- 检查alert时会产生与手动点击'OK'按钮一样的效果。如果一个alert产生了,而你却没有去检查它,selenium会在下个action中报错。
- 注意:Selenium 不支持 Javascrīpt 在onload()事件时 调用alert();在这种情况下,Selenium需要你自己手动来点击OK.
assertConfirmation
assertConfirmation(messagePattern)
- 检查Javascrīpt是否有产生带指定message的confirmation对话框和alert情况一样,confirmation对话框也必须在它们产生的时候进行检查
- 默认情况下,Selenium会让confirm() 返回true, 相当于手动点击Ok按钮的效果。你能够通过chooseCancelOnNextConfirmation命令让confirm()返回false.同样地,如果一个cofirmation对话框出现了,但你却没有检查的话,Selenium将会在下个action中报错
- 注意:在Selenium的环境下,confirmation对话框框将不会再出现弹出显式对话框
- 注意:Selenium不支持在onload()事件时调用confirmation对话框,在这种情况下,会出现显示confirmatioin对话框,并需要你自己手动点击。
assertPrompt
assertPrompt(messagePattern)
- 检查Javascrīpt是否有产生带指定message的Prompt对话框
- 你检查的prompt的顺序Prompt对话框产生的顺序必须相同
- 必须在verifyPrompt之前调用answerOnNextPrompt命令
- 如果prompt对话框出现了但你却没有检查,则Selenium会在下个action中报错 answerOnNextPrompt Joe
click id=delegate
verifyPrompt Delegate to who?
四、 Parameters and Variables
参数和变量的声明范围由简单的赋值到Javascrīpt表达式赋值。
Store,storeValue 和storeText 为下次访问保存值。
在Selenium内部是用一个叫storeVars的map来保存变量名。
Variable Substitution 变量替换
提供了一个简单的方法去访问变量,语法 $.{xxx} store Mr title
storeValue nameField surname
store $.{title} $.{suname} fullname
type textElement Full name is: $.{fullname}
Javascrīpt Evaluation Javascrīpt赋值
你能用Javascrīpt来构建任何你所需要的值。
这个参数是以javascrīpt开头,语法是 javascrīpt.{'with a trailing'}。
可以通过Javascrīpt表达式给某元素赋值。 store javascrīpt.{'merchant'+(new Date()).getTime()} merchantId
type textElement javascrīpt.{storedVars['merchantId'].toUpperCase()}
Generating Unique values 产生唯一值.
问题:你需要唯一的用户名
解决办法: 基于时间来产生用户名,如'fred'+(new Date().getTime())
发表评论
-
ocx插件插入网页实现自动更新与安装注册
2010-07-27 16:17 6670ocx插件插入网页实现 ... -
JIRA
2010-04-02 16:28 1221JIRA 百科名片 JIRA是集项目计划、任务分配、需求管 ... -
ArrayList和LinkedList的用法区别
2010-03-17 10:58 1955ArrayList和LinkedList的用法区别 (2 ... -
Java 中Vector、ArrayList和LinkedList 的区别时间
2010-03-17 10:25 1792Java 中Vector、ArrayList和LinkedLi ... -
多层架构的Web开发框架模型
2010-03-14 00:31 1969摘要:在经典的J2EE四层体系结构的基础上增加数据持久层,提出 ... -
Java语言编码规范(Java Code Conventions
2010-03-08 01:17 8561 介绍(Introduction)1.1 为什么要有编码规范 ... -
IT 的规划
2010-02-21 21:07 775本文说的这位网友,在I ... -
记忆学
2010-02-10 00:50 696http://bbs.jiyifa.cn/read.php?t ... -
java析构函数替代者finalize()解说
2010-01-21 22:18 2609java析构函数替代者finali ... -
Java的GC机制总结(0) ---finalize()方法
2010-01-21 22:00 1234其实了解JAVA的人,都知道JAVA的GC机制是其的一大优点, ... -
Java认证考试
2010-01-14 12:30 863Java认证考试 关于Java方面,Sun推出四项认证:Su ... -
集合框架
2010-01-13 23:24 673java 集合框架 对象的集合 如果程序的 ... -
Java集合框架使用总结
2010-01-13 21:31 675Java集合框架使用总结 ... -
关于JAVA中的线程安全
2010-01-13 10:34 1568关于JAVA中的线程安全 ... -
Java 理论与实践: 并发集合类
2010-01-13 01:27 868DougLea的 util.concurrent 包除了包含许 ... -
java main 主函数
2010-01-10 14:28 2350java主函数一般定义如下:public static ... -
java新式for循环
2009-12-29 15:51 811java新式for循环 2008-08-04 13:48:2 ... -
2009年的Java技术发展趋势展望
2009-11-08 21:28 773已经有14岁的Java在日新月异的IT技术领域内不算年轻,但它 ... -
MyEclipse要注册
2009-11-07 18:37 1702yEclipse怎么注册都不知道。我说他没有注册,他硬要说已经 ... -
浅谈设计模式在JAVA中的具体运用
2009-10-27 23:32 960浅谈设计模式在JAVA ...
相关推荐
selenium IDE使用手册,写的很好,请大家参考,多多学习
【Selenium-Python 中文手册】是一份详细的文档,它为使用Python进行Selenium测试提供了指导。Selenium是一个强大的Web自动化测试工具,Python版本的Selenium绑定提供了简单易用的API,使得用户能够轻松地编写功能性...
**Selenium API 中文参考手册** Selenium 是一个强大的开源自动化测试框架,它允许开发者编写可运行在多种浏览器上的测试脚本。Selenium 支持多种编程语言,其中包括 Python,这也是我们今天关注的重点。本参考手册...
"Selenium 中文手册.docx" Selenium 是一个功能强大的自动化测试工具,旨在帮助开发者和测试工程师快速、准确地自动化 Web 应用程序的测试。下面是 Selenium 中文手册的知识点总结: 一、Element Locators(元素...
以上内容涵盖了Selenium中文API参考手册的一些核心概念和技术点,介绍了如何通过Selenium的API进行网页元素的定位、操作和验证,以及如何利用Selenium的高级功能进行复杂的自动化测试。Selenium作为一个功能强大的...
个人最近开始学习Selenium,但发现对应python的有用的资料奇少无比,于是 自己努力收集并整理了一些资料 学会搭建环境后的同学,建议先抛弃其他一切资料,先看一遍这个python资料,保证收益匪浅,基本上可以动手做...
Selenium 不同于一般的测试工具。一般的脚本测试工具录制脚本,实际上都...如果你要执行其他语言格式的Selenium 脚本,那么,你需要使用Selenium 服务器。6 种语言的使用方法都是一样的。下面,我以Java 为例进行说明。
通过本文档,读者可以学习如何安装和启动 Selenium IDE,如何使用 Selenium IDE 创建和运行测试用例,如何使用 Selenese 脚本语法编写测试套件等。 一、Selenium IDE 的安装和启动 Selenium IDE 可以从 SeleniumHQ...
在使用"RobotFramework-Selenium2Library1.8中文版.pdf"文档时,可以通过查阅关键字的详细描述和示例,了解其具体用法和注意事项,以便更好地利用Selenium2Library进行自动化测试。 通过深入学习和实践,测试工程师...
根据提供的文件信息,本文将深入解析Selenium自动化测试框架的参考手册中文翻译部分,该手册涵盖了Selenium的核心概念和操作方法。 ### Selenium概念理解 Selenium是一个用于Web应用程序测试的工具,支持多种...
但是做页面的测试速度通常很慢严重影响持续集成的速度这个时候建议使用HtmlUnit不过HtmlUnitDirver运行时是看不到界面的对调试就不方便了。使用哪种浏览器可以做成配置项根据需要灵活配置。
### Selenium中文手册知识点详解 #### 一、Selenium 命令与操作 Selenium 提供了一系列命令来帮助用户执行各种测试操作。这些命令可以分为不同的类别,包括但不限于:状态检查(如验证某个元素是否可见)、等待...
《Selenium_中文API.pdf》可能包含了详细的Selenium WebDriver API的中文解释,包括各个方法的使用、参数说明以及返回值。这对于中文环境下的开发者来说非常有帮助,能够清晰理解每个命令的功能和用法。 **Selenium...
#### 八、Selenium 中文参考手册 Selenium 提供了详细的文档和指南,其中包括中文版本的参考资料。这些文档覆盖了从基础知识到高级技术的所有方面,对于初学者和有经验的测试工程师都非常有用。 #### 九、Selenium...
selenium _RC _java环境配置.doc ...Selenium_(安装使用).ppt Selenium_手册.pdf Selenium_中文API.pdf Selenium测试实践_基于电子商务平台.pdf Selenium入门教程.pdf Selenium私房菜(新手入门教程).pdf