amazon s3如何使用Java在selenium AWS Lambda中截图
我正在用Selenium Java编写脚本,以便在AWS Lambda上运行测试。然而,我无法找到直接将这些图像下载到本地系统或在s3中上传的方法。 我用的是硒和无头铬
我需要拍摄以下代码的截图,并将其上传到s3或aws lambda上的本地文件中:
driver.findElement(By.xpath("//input[@value='Submit Your Code']")).click();
System.out.println("Code submitted successfully");
WebElement correct_sol=driver.findElement(By.xpath("//div[@id='tdpostoutout']/span[contains(text(),'Submitted Solution is Correct!')]"));
wait.until(ExpectedConditions.visibilityOf(correct_sol));
我该怎么做??有什么建议吗
共 (0) 个答案