pip install robotframework-selenium2library
test.txt: *** Settings ***
Library Selenium2Library
*** Test Cases ***
My First Test
[Setup] Open Browser http://google.com firefox
Input Text name=q Robot Framework
Click Button name=btnG
Wait Until Page Contains Element ires
Click Link Robot Framework
[Teardown] Close All Browsers
and then execute pybot test.txt
Selenium2 and Robot Framework are pretty neat when it comes to web testing.Finding a problem with code is useful, but it's extremely limited. You might find 100 bugs, but if there's 101 bugs your product has the potential to fail completely. It's so much more useful to define a framework of things that the code has to do properly and make sure it does do them all properly. To that end, testing should come first - define what the code needs to do, write tests to make sure it does those things (automated unit tests where possible, but at the very least well defined processes for how you make sure it works), and then write the code to actually do it. Any developer who isn't interested in proving their code works, and will continue to work as it becomes more complex, is a terrible developer.
tl;dr If you want to fix testing don't write any code until you know how you're going to test it works.