close

Вход

Забыли?

вход по аккаунту

?

Презентация PowerPoint - QA Community Dnepropetrovsk

код для вставкиСкачать
Selenium IDE
Benefits
•
•
•
•
•
•
•
•
Selenium IDE is full-featured Selenium version with GUI
Easy to install (Firefox plugin)
Plugin support
Intelligent field selection will use IDs, names, CSS or XPath as needed
Save tests as HTML, Ruby scripts, or any other format
Support all common Selenium commands
Easy record and playback
Experimental WebDriver support
Install
• Open http://docs.seleniumhq.org/download/ in Firefox
• Download and install latest released version
• Restart Firefox
Interface
Locators
Locator
Example
Description
id
id=destinationForm
Match element by id
name
name=from
Match element by name
identifier
identifier=destinationFrom
Match element by id or name
css
css=#destinationFrom
Match element by css selector
xpath
xpath=//input[@name=�from’]
Match element by xpath
Practice: Selenium context menu, visual locator
Wait commands
Command
Attribute
waitForPageLoad
Timeout
waitForCondition
Script
Timeout
waitForPopup
windowID
Timeout
waitForAlert
Practice: Overview other “waitFor” commands
Value
Actions
Command
Attribute
Value
open
path
click
Locator
type
Locator
Text to type
select
Locator
Option Locator
close
runScript
Script
Practice: Open google.com homepage and search “Selenium IDE”
Verify commands
Command
Target
verifyTitle
Pattern
verifyElementPresent
Locator
verifyAttribute
Locator@AttributeName
AttributeValue
verifyCookieByName
CookieName
CookieValue
verifyTextPresent
Pattern
verifyEval
Script
Practice: other verify commands overview
Value
Expected script return
How to verify CSS?
Command:
verifyEval
Target:
window.getComputedStyle(window.document.getElementById(“myID”)).getPropertyValue('color');
Value:
rgb(255,255,160)
Practice: Try to verify logo width on maxymiser.com
Practice
• Find 10 differences game
Документ
Категория
Презентации
Просмотров
11
Размер файла
344 Кб
Теги
1/--страниц
Пожаловаться на содержимое документа