Untitled

mail@pastecode.io avatar
unknown
plain_text
7 months ago
1.2 kB
6
Indexable
Never
package saucedemo.pageobject;
import java.time.Duration;
import java.util.concurrent.TimeUnit;

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.testng.annotations.AfterClass;
import org.testng.annotations.BeforeClass;

public class testcasesauce 
{

public String url= "https://www.saucedemo.com/";
public String demourl= "https://saucelabs.com/ site";
public String homepageurl= "https://www.saucedemo.com/inventory.html";
public String carturl= "https://www.saucedemo.com/cart.html";
public String userid= "standard_user";
public String password = "secret_sauce";
public String firstname= "Manish";
public String lastname= "Kumar";
public String postalcode= "862001";


public static WebDriver driver;

@BeforeClass
public void setup()
{
	//System.setProperty("webdriver.chrome.driver", System.getProperty("user.dir")+"\\Drivers\\chromedriver.exe");
    driver= new ChromeDriver();
    
    driver.manage().window().maximize();
    
    driver.manage().timeouts().implicitlyWait(10,TimeUnit.SECONDS);
    
}

/*@AfterClass
public void teardown()
{
	driver.quit();
}*/
}
Leave a Comment