高级用户交互API(JavaDocs)
WebElement element = driver.findElement(By.whatever("anything"));new Actions(driver).click(element).perform();
或Javascript:
JavascriptExecutor js = (JavascriptExecutor)driver;WebElement element = driver.findElement(By.whatever("anything"));js.executescript("arguments[0].click()", element);
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)