forked from CourseRepository/SeleniumWebdriverWithJava
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTestInterface.java
More file actions
77 lines (53 loc) · 1.54 KB
/
TestInterface.java
File metadata and controls
77 lines (53 loc) · 1.54 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
package testcase;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.ie.InternetExplorerDriver;
/*interface interfaceOne{
public abstract void display();
String getMsg(String str);
}
interface interfaceTwo{
void showInt();
}
class baseClass implements interfaceOne,interfaceTwo {
@Override
public void display() {
System.err.println("Interface One Menthod");
}
@Override
public String getMsg(String str) {
return str;
}
@Override
public void showInt() {
System.err.println("Inter Face two : 10");
}
}*/
/**
* @author - rahul.rathore
* @date - 16-Nov-2014
* @project - Webdriver
* @package - testcase
* @file name - TestInterface.java
*/
public class TestInterface {
public static WebDriver driver = null;
public static void main(String[] args) {
driver = new FirefoxDriver();
System.setProperty("webdriver.chrome.driver", "C:\\Junit\\selenium-2.41.0\\chromedriver_win32\\chromedriver.exe");
driver = new ChromeDriver();
System.setProperty("webdriver.ie.driver", "C:\\Junit\\selenium-2.41.0\\IEDriverServer_x64_2.30.2\\IEDriverServer.exe");
driver = new InternetExplorerDriver();
/*baseClass obj = new baseClass();
obj.display();
System.err.println("Value : " + obj.getMsg("Method"));
obj.showInt();*/
/*interfaceOne obj = new baseClass();
obj.display();
System.err.println("Value : " + obj.getMsg("Method"));*/
/* interfaceTwo obj = new baseClass();
obj.showInt();
*/
}
}