All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.phoenix.test.WebDriverTest Maven / Gradle / Ivy

Go to download

update:检查点bug修复,增加js执行的驱动,commandExecutor方法bug修复,驱动更新支持最新Firefox47/chrome51/IE10/IE11/IE Edge

There is a newer version: 1.5.0
Show newest version
package org.phoenix.test;

import org.junit.Before;
import org.junit.Test;
import org.openqa.selenium.By;

import static com.codeborne.selenide.Selenide.*;
import static com.codeborne.selenide.Condition.*;

/**
 * http://selenide.org/
 * @author mengfeiyang
 *
 */

public class WebDriverTest {
    @Before
    public void before(){
    	
    }
	@Test
	public void test() {
		open("/login");
		$(By.name("user.name")).setValue("johny");
		$("#submit").click();
		$(".loading_progress").should(disappear); // Waits until element disappears
		$("#username").shouldHave(text("Hello, Johny!")); // Waits until element gets text
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy