We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
package selenimfile;
import java.io.File; import java.util.concurrent.TimeUnit;
import org.openqa.selenium.OutputType; import org.openqa.selenium.TakesScreenshot; import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver;
public class ScreenshotDemo {
public static void main(String[] args) { // TODO Auto-generated method stub System.setProperty("webdriver.chrome.driver", "C:\\Users\\GLB-114\\Downloads\\chromedriver.exe" ); WebDriver driver = new ChromeDriver(); driver.manage().window().maximize(); driver.manage().timeouts().pageLoadTimeout(50, TimeUnit.SECONDS); driver.get("https://www.lambdatest.com/"); TakesScreenshot sc= (TakesScreenshot)driver; File source= sc.getScreenshotAs(OutputType.FILE); FileUtils.copyFile(source, new File("./selenim/screenshot/screen.png")); System.out.println("screenshot has been taken "); driver.close(); }
}
The text was updated successfully, but these errors were encountered:
@mayankchandel , you've posted Java file source code in this task description. The Mink is project written on PHP.
Either you've posted incorrect code OR you've posted to wrong GitHub project.
Sorry, something went wrong.
No branches or pull requests
package selenimfile;
import java.io.File;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.OutputType;
import org.openqa.selenium.TakesScreenshot;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
public class ScreenshotDemo {
}
The text was updated successfully, but these errors were encountered: