15 Seconds to Selenide

package com.agilemobiledeveloper.dataradiator;
import static org.junit.Assert.*;
import org.junit.Test;
import static com.codeborne.selenide.Selenide.*;
import static com.codeborne.selenide.Condition.text;
import static com.codeborne.selenide.Selectors.by;
import static com.codeborne.selenide.Selectors.byText;
import static com.codeborne.selenide.Selenide.$;
import static com.codeborne.selenide.Selenide.$$;
import com.codeborne.selenide.SelenideElement;
import org.junit.Test;
import org.openqa.selenium.By;
import static com.codeborne.selenide.Condition.*;
import static com.codeborne.selenide.Selectors.*;
import static com.codeborne.selenide.Selenide.*;
/**
 * 
 * @author spannt
 *
 */
public class TestHome {
 @Test
 public void userCanLoginByUsername() {
 open("http://google.com/");
 $("title").shouldHave(text("Google"));
 }
}

In Maven pom.xml

<dependency>
<groupId>com.codeborne</groupId>
<artifactId>selenide</artifactId>
<version>2.1</version>
</dependency>

Written By bunkertor

Leave a Reply

Your email address will not be published. Required fields are marked *