-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAddProductEdge.java
More file actions
61 lines (43 loc) · 1.74 KB
/
Copy pathAddProductEdge.java
File metadata and controls
61 lines (43 loc) · 1.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package org.contentspeed.automationtesting.Lider.src.src.Edge;
import org.contentspeed.automationtesting.Lider.src.src.Constants;
import org.contentspeed.automationtesting.Lider.src.src.ProdusCeaiIE11;
import org.contentspeed.automationtesting.Lider.src.src.CosCumparaturi;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebDriverException;
import org.openqa.selenium.edge.EdgeDriver;
import org.testng.annotations.AfterClass;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
import java.util.concurrent.TimeUnit;
public class AddProductEdge {
static ProdusCeaiIE11 objProdus;
static CosCumparaturi objCos;
static WebDriver driver;
@BeforeClass
public static void setUpClass() throws Exception {
System.setProperty("webdriver.edge.driver", "D:\\Documentatie\\Selenium\\MicrosoftWebDriver16299.exe");
driver = new EdgeDriver();
driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);
driver.manage().window().maximize();
driver.get(Constants.URLProdus);
}
@AfterClass
public static void tearDownClass() throws Exception {
driver.quit();
}
@Test
public void AdaugProdusLaCos() {
try {
objProdus = new ProdusCeaiIE11(driver);
objProdus.Actions("Anda", "Cristea", "andadeacu11@yahoo.com", "0741010736", "observatii test ", "Bucuresti", "Bucuresti", "strada Fericirii nr. 9");
} catch (WebDriverException ex) {
ex.printStackTrace();
//driver.quit();
}
}
}