I post once in a while tips and tricks for Selenium and Java on Quora.
This is the list of the tips published so far:
Use a detailed error message with assertTrue
Do not chain methods of different classes
Use Expected Conditions with logical operators
Stop tests that take too long using the timeOut attribute
Window Handles Can Be Returned in Any Order
How to Retry Page Methods On Error?
How to check that the save popup is not displayed after clicking the save button?
How to wait until the number of results is greater than 0?
Use streams for list of web elements
Use @ Test annotation for the test class instead of tests
Do not use “naked” data in Selenium WebDriver tests
Do not use object repositories with Selenium WebDriver
sendKeys() can have multiple parameters
Maximizing the browser window does not work?
Don’t create objects in your tests
Don’t use assertions in tests to verify site navigation
[…] Selenium Tips and Tricks […]