How can I perform automated testing with JUnit and Selenium for browser compatibility?

Can anyone please tell me how can i perform automated testing with JUnit and Selenium for browser compatibility.