@SuppressWarnings("unchecked")
	public List<String> getJobNameList(WebDriver driver, boolean close,
			String... view) {
		List<String> jobNameList = new ArrayList<String>();
		try {

			driver.get(basicServer.getBaseUrl()); // 转到基本页
			WebDriverWait wait = new WebDriverWait(driver, 10);
			wait.until(ExpectedConditions.titleContains("Dashboard"));

			if (view!=null && view.length>0) {
				driver.get(basicServer.getBaseUrl() + "/view/" + view[0]);
				wait.until(ExpectedConditions.titleContains(view[0])); // 从基本也跳转到某个view
			}

			String script = "var tbody = document.getElementById('projectstatus').firstElementChild;"
					+ "var trs = tbody.children;"
					+ "var list = [];"
					+ "for(var i=0;i<trs.length-1;i++){"
					+ "   list[i]=trs[i+1].id;" + "}" + "return list;";
			List<String> strsId = (ArrayList<String>) ((JavascriptExecutor) driver)
					.executeScript(script);

			for (String each : strsId) {
				jobNameList.add(each.substring(4)); // 得到所有工程名
			}
		} catch (Exception e) {
			e.printStackTrace();
		} finally {
			if (close) {
				if (driver != null) {
					driver.close();
				}
			}
		}
		return jobNameList;
	}