Introduction to Fluentlenium (Java series)

Most of the methods in Fulentlenium are Domain specific, meaning their methods are meaningful based on the action it’s going to perform, like one we do for our Keyword driven framework, some of the methods are this:

  • fill as opposed to sendKeys of selenium
  • click as opposed to generic Click of Selenium
  • goTo as opposed to get of Selenium

Here is link to get the jar file : http://mvnrepository.com/artifact/org.fluentlenium/fluentlenium-core/0.13.0

fluentlenium

And here is simple code:


import org.junit.Test;
import static org.fest.assertions.Assertions.assertThat;

public class BingTest extends FluentTest {

@Test
public void title_of_bing_should_contain_search_query_name() {
goTo("http://www.bing.com");
fill("#sb_form_q").with("FluentLenium");
submit("#sb_form_go");
assertThat(title()).contains("FluentLenium");
}
}

Thanks for reading the post !!!

Please leave your comments and let me know if there is anything I should update in this post.

Thanks,
Ha Do

2 thoughts on “Introduction to Fluentlenium (Java series)

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.