为什么Selenium WebDriver
命令不会显示在我的@Test(priority=2)
上?每次我在@Test(priority=1)
测试进入硒网络驱动器命令它只是不使用其他测试 -Selenium Web Driver和TESTNG
public class TestingTestNG {
@Test(priority=1)
public void TestingTestNG() throws InterruptedException{
// Import FireFox Driver
WebDriver driver = new FirefoxDriver();
// Open up Sand Page
driver.get("****");
// Enter Usename and Password
// User
driver.findElement(By.id("userId")).sendKeys("****");
Thread.sleep(3000);
// Password
driver.findElement(By.id("password")).sendKeys("****");
Thread.sleep(3000);
// Click Login Button
driver.findElement(By.id("loginButton")).click();
}
@Test(priority=2)
public void test2(){
driver.
驱动程序的下拉列表。不显示,只显示它是一个类...任何建议?您driver
结果在的
[硒的webdriver和TestNG](http://stackoverflow.com/questions/37838987/selenium-webdriver-and-testng)的可能的复制 – Andrejs