exampleXpath = "//*[contains(@id,'%s')]" · void findElement(String someText) · { · driver.findElement(By.xpath(String.format(exampleXpath, text))); · }.
確定! 回上一頁