public static void instrategy(WebDriver driver, String title, String reminder) { driver.findElement(By.className("ico-add")).click(); boolean flag = Check.usualexist(driver, title, 2); if (flag) {; } else { ScreenshotandAssert.screenandasserttitle(driver, reminder, title); } }
public static void search( WebDriver driver, MobileStrategyInfo minfo, String title, String reminder) throws InterruptedException { List<String> list = new ArrayList<String>(); list.add(minfo.getAdname()); list.add(minfo.getOrname()); list.add(minfo.getPlname()); PubHandle.search(driver, list, PubHandle.titlelist()); boolean flag = Check.usualexist(driver, title, 2); if (flag) {; } else { ScreenshotandAssert.screenandasserttitle(driver, reminder, title); } }