Wednesday, 30 August 2017

Code Example - Set Page Dimension

package com.practiceCode;

import org.openqa.selenium.Dimension;
import org.testng.annotations.Test;

/**
 * @Blog Name : Selenium Code Example
 * @author Deepak Gupta
 * @Created Date 30-08-2017
 *
 */

public class SetPageDimension extends SuperTestNG {

@Test
public void testDimension() {
driver.manage().window().setSize(new Dimension(1366, 768));
driver.get("http://www.only-testing-blog.blogspot.in/2013/09/testing.html");

}

}

No comments:

Post a Comment

Code Example - File Download By Robot Class In Firefox Browser

Exported from Notepad++ package com . practiceCode ; import java . awt . AWTException ; import java . awt . Robot ; import j...