Skip to content

Instantly share code, notes, and snippets.

Created May 19, 2010 19:56
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
import com.thoughtworks.selenium.*;
import java.util.regex.Pattern;
public class Wordpress extends SeleneseTestCase {
public void setUp() throws Exception {
setUp("", "*chrome");
public void testJunit() throws Exception {"/wordpress/wp-login.php");
selenium.type("user_login", "admin");
selenium.type("user_pass", "demo123");"wp-submit");
verifyTrue(selenium.isTextPresent("Howdy, admin"));"link=Posts");
selenium.type("title", "Selenium demo Post");"publish");
verifyTrue(selenium.isTextPresent("Post published"));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment