public void deleteAllJobs() throws Exception{
		WebDriver driver = login();
		
		//获取所有job连接
		String getAllJobsScript = "var jobNodeList = document.getElementsByClassName('model-link inside');"
				+ "return jobNodeList;";
		@SuppressWarnings("unchecked")
		List<WebElement> jobEleList = (List<WebElement>)(((JavascriptExecutor)driver).executeScript(getAllJobsScript));
		//存取URL路径
		List<String> jobUrlList = new ArrayList<String>();
		for(WebElement each:jobEleList){
			jobUrlList.add(each.getAttribute("href"));
		}
		//循环删除每个job
		for(String eachUrl:jobUrlList){
			if(eachUrl.contains("job")){//确保每个路径都是与job有关
				driver.get(eachUrl);
				WebDriverWait driverWait = new WebDriverWait(driver,10);
				 WebElement deleteProjectELe = 
						 driverWait.until(ExpectedConditions.presenceOfElementLocated(By.partialLinkText("Delete")));
				 deleteProjectELe.click();
				 Alert deleteAlert = driver.switchTo().alert();
				 deleteAlert.accept();
				 driverWait.until(ExpectedConditions.titleContains("Dashboard"));
			}
		}
		driver.close();
	}