| Quick Reference Selenium CheatsheetSelenium 4 on one page — locators, waits, frames, and the traps around stale elements, attributes, and mixed waits. 10 sections 10 tables 14 code snippets Open and findFirst match Every match The session
This page is Selenium 4 in Python. Cypress is left out. LocatorsBoth classes Which strategy
WaitsVisible and enabled What you are waiting for
Reading an elementThe live value Three different reads
Click and typeReplace the field A real select What the call does
Frames and dialogsSearch inside the iframe Confirm the dialog Where the driver is looking
Action chainsHover, then click A gesture
The driverQuit when the block ends Lifetime
When the page movesThe node was replaced Exceptions worth naming
Interview trapsThe Selenium 4 call One argument to the condition Traps worth memorising
How to use this page: find with |