This script uses Helium to automatically perform a Google search for the term "Helium", and opens the Wikipedia article on the subject. If something goes wrong, it prints "Test failed :(". Otherwise, it prints "Test passed!".

import static com.heliumhq.API.*;

public class GoogleSearchExample {
    public static void main(String[] args) {
        startChrome();
        goTo("google.com/?hl=en");
        write("Helium");
        press(ENTER);
        click("Helium - Wikipedia");
        if (getDriver().getTitle().contains("Wikipedia"))
            System.out.println("Test passed!");
        else
            System.out.println("Test failed :(");
        killBrowser();
    }
}
from helium.api import *
start_chrome("google.com/?hl=en")
write("Helium")
press(ENTER)
click("Helium - Wikipedia")
if 'Wikipedia' in get_driver().title:
    print 'Test passed!'
else:
    print 'Test failed :('
kill_browser()

To try the script for yourself, follow the few simple steps on our Getting Started page. Then, execute the run.bat/run.sh shell script in the examples/Google search subdirectory of your Helium installation.