嗨我有一个emun,它将运行测试,如果语句。枚举返回后无法访问的代码
public enum Test_Criteria
{
Pass,
Warning,
Fail
}
它已经运行if语句
if (driver.Url.Contains("Postcode.aspx?type=billing&mode=guest"))
{
return Test_Criteria.Pass;
}
else
{
return Test_Criteria.Fail;
}
我越来越无法访问的代码后,正下方在这里进行到下一个测试
driver.FindElement(By.Id("Pagecontent_TextBoxPostCode")).SendKeys("#####");
什么将是最明智的方法让程序在返回后继续执行代码。谢谢
你需要表现出更多的代码的掌握你在做什么......发表上述 – Stokedout 2013-03-13 09:57:16