startChrome();
goTo(“Google.com”);
write(“Helium”);
press(ENTER);
click(“Helium – Wikipedia”);
assert Text(“Helium is the second lightest element”).exists();
This is Java, Python bindings are also available. Note how no reference to any HTML source code properties is required (thus the tests can be written in a TDD style, before the implementation).
I should also point out that Helium is a commercial product, so you (/ your company) has to pay to use it.