Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Four Tips for More Testable UI
Search
Jim Holmes
March 17, 2019
Technology
76
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Four Tips for More Testable UI
Quick talk given at the 2019 Microsoft MVP summit during the ALM group's MVP2MVP sessions.
Jim Holmes
March 17, 2019
More Decks by Jim Holmes
See All by Jim Holmes
Adapting to Change in Software Delivery
jimholmes
0
120
Public_Speaking.pdf
jimholmes
0
150
Trusted System Boundaries
jimholmes
0
150
What's Worse? Zombies or Brittle UI Tests?
jimholmes
0
180
Odd Parallels Between Weightlifting and Software Delivery
jimholmes
0
92
Is Quality The Bottleneck?
jimholmes
0
160
Don't Fear Leadership
jimholmes
0
140
Intro To TDD
jimholmes
1
120
Honor Flight #20 (Bay Area) Recap
jimholmes
0
170
Other Decks in Technology
See All in Technology
[FECONF-2026] 신대륙을 향한 카카오페이증권 프론트엔드 항해기 (이주승)
l1ghthouse
0
250
推論基盤と Scale-Up Interconnect の現状と制約から俯瞰する技術動向
markunet
2
560
CSS2026:OWS研究会・招待講演「世界観を、実装する」
atsush1_sada
2
340
Filter What the LLM Reads: RAG Governance with AgentCore Gateway
yakumo
1
120
AI時代のエンジニアの情報発信〜個人の発信を組織の力に変える〜
ryo_kawamata
0
230
Vue.jsのGitHubから学ぶ意思決定
yut0naga1_fa
1
320
LLMの知識とAIエージェント
happysamurai294
0
110
VLA-JEPA: Enhancing Vision-Language-Action Models with Latent World Models
takmin
0
360
You Have Agency(サンキュー、Ruby)
snoozer05
PRO
3
480
ガチで放置できるClaude Code実行環境の作り方.pdf
lamaglama39
5
10k
Jev の中身は50行で再現できる。でも本物との差はどこにあるのか
hisuzuya
0
130
PostgreSQL at Microsoft: Open Source, AI, & Cloud | Claire Giordano | PGConf.EU 2026
clairegiordano
0
110
Featured
See All Featured
Agile Leadership in an Agile Organization
kimpetersen
PRO
0
300
Making the Leap to Tech Lead
cromwellryan
135
10k
Building Flexible Design Systems
yeseniaperezcruz
330
41k
Designing Experiences People Love
moore
143
24k
New Earth Scene 8
popppiees
4
2.7k
Faster Mobile Websites
deanohume
310
32k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
33
5.4k
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
4.6k
Amusing Abliteration
ianozsvald
1
360
AI Search: Implications for SEO and How to Move Forward - #ShenzhenSEOConference
aleyda
1
1.4k
How To Speak Unicorn (iThemes Webinar)
marktimemedia
1
610
Discover your Explorer Soul
emna__ayadi
2
1.3k
Transcript
Testable UIs
Or: How to help your test automation folks drink less
[email protected]
@aJimHolmes
Fortune 10 client Java 6 Enterprise-ready components HP build and
SCM tools “What’s a unit test?”
Thank you ET
Generalized Talk Ideas apply to all UI and automation tools
https://github.com/jimholmes/ Demo-Site
Two main problems in all UI testing
Finding Stuff
Async
Also SharePoint
Finding stuff == Locators
For Web, prefer: IDs CSS/JQuery-ish Name Custom Attributes
As a last resort: XPath
None
Create Good Locators
0) Own Your HTML
None
None
None
FindElement.ById(“grid”)
None
None
1) Understand your controls / frameworks
None
None
None
FindElement.ByCss( “some big stupid CSS string”)
Someone changes style
None
None
None
FindElement.ById( “update-btn”)
2) Tweak dynamic data
None
Find elements by text content. Might not be granular enough.
None
None
No useful attributes
None
None
None
ID is position-based. Data changes, IDs change.
None
We own the code!
Is there some useful data in your objects?
None
None
None
None
None
FindElement.ById( contains(“Cobb”) )
“Name” isn’t all that useful. Got contract numbers? Project IDs?
Other stuff? Find good metadata!
3) Make complex async less painful
None
SharePoint
wait until expected condition 1 wait until expected condition 2
IF SOMETHING wait until expected condition 3 IF SOMETHING ELSE wait until expected condition 4 FINALLY wait until expected condition 342
We own the code!
Create “flags” when async is complete
None
None
None
None
None
Wait until flags.div(responseType=create) exists
0) Add static IDs 1) Tweak controls 2) Use data
for locators 3) Build flags/latches for complex async
None
https://github.com/jimholmes/ Demo-Site