Take snapshot in Selenium RC
We have 2 different methods
a) Capturescreenshot
b) Captureentirepagescreenshot
CaptureScreenshot Take snapshot of screen and save it to given location.
Selenium.capturescreenshot(“C:\\abc.png”);
private Selenium selenium;
@Before
public void broStart()
{
selenium = new DefaultSelenium("localhost", 4444, "*firefox", "http://mail.in.com");
selenium.start();
}
@Test
public void case1() throws InterruptedException
{
Thread.sleep(2000);
selenium.captureScreenshot("C:\\Abc.png");
}
CaptureEntirePageScreenshot(Arg1,Arg2)
Arg1=> Location where we want to save screenshot
Arg2=> Background Color
Subscribe to:
Post Comments
(
Atom
)
No comments :
Post a Comment