在页面上有一个类似这样的元素:
<a href="javascript:void(0)"> Computer durchsuchen </a>
如果单击此链接,将打开一个窗口,您可以在其中选择图像(路径)。我设法点击了链接,窗口就打开了。我的问题是,现在我如何通过路径,如何再次关闭它?
This is the site it concerns...
这是我到目前为止编写的代码:
WebDriver driver = new FirefoxDriver();
driver.get("https://www.shirtee.com/de/designer/?id=1140/");
WebElement link = driver.findElement(By.cssSelector(".upload-image-drop-zone a"));
Actions ob = new Actions(driver);
ob.click(link);
org.openqa.selenium.interactions.Action action = ob.build();
action.perform();
Here you can see a screenshot of the processes that happen...
https://stackoverflow.com/questions/51071082
复制相似问题