How can I perform automated UI testing with Selenium and JavaScript?

Help me to perform automated UI testing with Selenium and JavaScript?