-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGuru99Testcase1.java
More file actions
34 lines (29 loc) · 906 Bytes
/
Guru99Testcase1.java
File metadata and controls
34 lines (29 loc) · 906 Bytes
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
package PageObjectModel;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import io.github.bonigarcia.wdm.WebDriverManager;
public class Guru99Testcase1 {
public static void main(String[] args) throws InterruptedException {
WebDriverManager.chromedriver().setup();
WebDriver driver = new ChromeDriver();
driver.manage().window().maximize();
Guru99 guru = new Guru99(driver);
driver.get("https://www.demo.guru99.com/V4/");
guru.userid("mngr563814");
guru.pass("qYsajem");
guru.sub();
String Title = driver.getTitle();
String ActualTitle = "Guru99 Bank Manager HomePage";
if(ActualTitle.contentEquals(Title))
{
System.out.println("Title verified");
}
else
{
System.out.println("Title not verified");
}
Thread.sleep(5000);
//driver.close();
System.out.println("POM file Excuted");
}
}