-
<div role="button" title="Attach">
-
如何
sendkeys
<input type="file" accept="image/*,video/*" multiple="" style="display: none;">
driver.findElement(By.xpath("//div[@title='Attach']")).click();
System.out.println("Attach clicked....");
WebElement MediaButton = driver.findElement(By.className("xyzmm"));
MediaButton.click();
System.out.println("Select clicked....");
WebElement uploadElement = driver.findElement(By.xpath("//input[@accept='image/*,video/*']"));
uploadElement.sendKeys("/Users/Apple/Desktop/logos/Team1.png");
静止
uploadElement
display none
有问题…,正在尝试…这个问题已经解决了