Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
UI Functional Testing
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Jason Myers
January 21, 2013
Technology
120
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
UI Functional Testing
UI Funcational Testing with Selenium and Python
Jason Myers
January 21, 2013
More Decks by Jason Myers
See All by Jason Myers
Building CLIs that Click
jasonamyers
0
50
Introduction to Pandas
jasonamyers
2
220
Generating Power with Yield
jasonamyers
1
190
Introduction to SQLAlchemy and Alembic
jasonamyers
4
1.1k
Data Networking for Developers
jasonamyers
0
150
Diabetes and Me
jasonamyers
0
80
Other Decks in Technology
See All in Technology
脱Jenkins、インターン生が挑んだCIツールGitHubActions移行
mixi_engineers
PRO
1
140
キャリアLT会#3
beli68
2
280
OpenTelemetryにおけるGoのゼロコード・コンパイル時計装について #fukuokago
quiver
0
350
AIコード生成×サプライチェーン攻撃 — PHPが直面する“二重の信頼問題
shinyasaita
0
490
AI時代におけるエンジニアの新たな役割──FDEとクオリアの探求/登壇資料(戸井田 裕貴)
hacobu
PRO
0
510
ソフトウェアアーキテクチャ研修【MIXI 26新卒技術研修】
mixi_engineers
PRO
2
600
コンテナ・K8s研修【MIXI 26新卒技術研修】
mixi_engineers
PRO
1
320
AIで楽になるはずが、なぜ疲れる?
kinopeee
0
110
現場との対話から始める “作る前に問い直す”業務改善
mochico50
2
320
Webアプリ認証の全体像 / The Big Picture of Web App Authentication
kitano_yuichi
1
460
Git 研修【MIXI 26新卒技術研修】
mixi_engineers
PRO
1
540
現場で使える AWS DevOps Agent 活用ノウハウ - Release Management 機能の検証結果を添えて / AWS DevOps Agent Release Management and Know-How
kinunori
3
160
Featured
See All Featured
How GitHub (no longer) Works
holman
316
150k
Thoughts on Productivity
jonyablonski
76
5.3k
How to build a perfect <img>
jonoalderson
1
5.8k
First, design no harm
axbom
PRO
2
1.2k
Site-Speed That Sticks
csswizardry
13
1.4k
RailsConf 2023
tenderlove
30
1.5k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
55
3.4k
More Than Pixels: Becoming A User Experience Designer
marktimemedia
3
470
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
128
56k
GitHub's CSS Performance
jonrohan
1033
470k
Believing is Seeing
oripsolob
1
170
Building Flexible Design Systems
yeseniaperezcruz
330
40k
Transcript
UI Functional Testing with Selenium and Python
None
Ready for Deployment Bro?
None
None
None
None
8BU
None
Selenium
Selenium IDE Web Driver Server Grid
Selenium IDE Web Driver Server Grid Firefox Plugin
Selenium IDE Web Driver Server Grid Firefox Plugin Javascript Based
Selenium IDE Web Driver Server Grid Firefox Plugin Javascript Based
DVR Style UI Testing
Selenium IDE Web Driver Server Grid Firefox Plugin Javascript Based
DVR Style UI Testing Simple!
Selenium IDE Web Driver Server Grid Firefox Plugin Javascript Based
DVR Style UI Testing Simplish...
Selenium IDE Web Driver Server Grid Live Demo Failure here!
Selenium IDE Web Driver Server Grid API
Selenium IDE Web Driver Server Grid API Available in many
languages
Selenium IDE Web Driver Server Grid API Available in many
languages Supports many browser
Selenium IDE Web Driver Server Grid API Available in many
languages Supports many browser More like traditional tests
Selenium IDE Web Driver Server Grid Live Demo Failure here!
ID driver.find_element_by_id("coolestWidgetEvah") <div id="coolestWidgetEvah">...</div>
ID XPath driver.find_elements_by_xpath("//input") <input type="text" name="example" />
ID Name XPath driver.find_element_by_name("cheese") <input name="cheese" type="text"/>
ID Name XPath CSS driver.find_element_by_css_selector("#food span.dairy.aged") <div id="food"> <span class="dairy
aged">cheese</span> </div>
ID Name XPath Text CSS driver.find_element_by_link_text("cheese") find_element_by_partial_link_text <a href="http://www.google.com/search? q=cheese">cheese</a>
None
None
element.submit()
inputElement.send_keys("Cheese!") element.submit()
inputElement.send_keys("Cheese!") element.submit() inputElement.click()
inputElement.send_keys("Cheese!") element.submit() inputElement.click() inputElement.select_by_visible_text()
Selenium IDE Web Driver Server Grid Live Demo Failure here!
None
Selenium IDE Web Driver Server Grid Java based
Selenium IDE Web Driver Server Grid Java based Used as
a proxy
Selenium IDE Web Driver Server Grid Java based Used as
a proxy A workaround to browser version needs
Selenium IDE Web Driver Server Grid Parallel Test Execution
Selenium IDE Web Driver Server Grid Parallel Test Execution Test
all the browsers
Selenium IDE Web Driver Server Grid Parallel Test Execution Test
all the browsers umm MS Azure
PageFactory and Page Objects Pattern
Selenium Resources http://seleniumhq.org/ http://selenium-python.readthedocs.org/en/latest/index.html https://github.com/jasonamyers/seleniumuitalk