1.@FindBy(id="mainFrame")
public WebElement mainframe;
2.@FindBy(className = "ui-dialog-grid")
public WebElement table;
3.@FindBy(xpath = "//select[@id='dataFormat']/option[@value='corpus']")
public WebElement addolabel;//下拉框选项
@FindBy(xpath = "//td[@i='body'][@class='ui-dialog-body']/div/iframe")
public WebElement smallMenu;
@FindBy(xpath = "//*[@id='test']/div")
public WebElement mcxbz;
driver.switchTo().defaultContent();//跳出全部层层嵌套的iframe,直接进入初始的地方,进入default content;
@FindBy(xpath = "//input[@value='001']/../../../span[1]")
public WebElement jiedian1;
/..是进入其父节点
4.((JavascriptExecutor)driver).executeScript("document.getElementsByClassName('Validform_input')[0].value='"+creat_labelname+"';");
waitTime(3000);
((JavascriptExecutor) driver).executeScript("document.getElementById('catDesc').value='璧垫娆㈡祴璇�';");
waitTime(3000);
5.driver.findElement(By.xpath("//td[text()='"+ykmimport.expendname+"']/../td[1]/input")).click();