Skip to content

Commit

Permalink
Merge pull request #1 from AakashSatpute119/driverupdate
Browse files Browse the repository at this point in the history
updated driver
  • Loading branch information
AakashSatpute119 authored Feb 2, 2024
2 parents 3736a0d + f3a1d9d commit 8be0301
Show file tree
Hide file tree
Showing 8 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/main/java/resources/Base.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public class Base {
public WebDriver intializeDriver () throws IOException {
// to read the properties of data.pro perties class
//create object of filestreaminput and pass the path of properties file
FileInputStream fs =new FileInputStream("C:\\Users\\AAkash Satpute\\eclipse-workspace\\Rediffmail2\\src\\main\\java\\resources\\data.properties");
FileInputStream fs =new FileInputStream("/Users/aakashsatpute/Downloads/Rediffmail/src/main/java/resources/data.properties");
// create object of properties class to use load method to load the properties file
prop =new Properties();
prop.load(fs);
Expand All @@ -34,7 +34,7 @@ public WebDriver intializeDriver () throws IOException {
String browsername=prop.getProperty("browser");
url =prop.getProperty("url");
if (browsername.equals("chrome")) {
System.setProperty("webdriver.chrome.driver", "E:\\JAVA TOOLS\\new102\\chromedriver.exe");
System.setProperty("webdriver.chrome.driver", "/Users/aakashsatpute/Downloads/Rediffmail/src/main/resources/chromedriver");
driver=new ChromeDriver();
}
else if (browsername.equals("firefox")) {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/resources/data.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
browser=firefox
browser=chrome
url=https://www.rediff.com/
Binary file added src/main/resources/chromedriver
Binary file not shown.
1 change: 1 addition & 0 deletions src/test/java/Loginpagetest/LandingPageTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public class LandingPageTest extends Base{
@BeforeTest
public void invokebrower () throws IOException {
driver=intializeDriver();
//driver.navigate().to(url);
driver.get(url);
}
@Test
Expand Down
Binary file added target/classes/chromedriver
Binary file not shown.
Binary file modified target/classes/resources/Base.class
Binary file not shown.
2 changes: 1 addition & 1 deletion target/classes/resources/data.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
browser=firefox
browser=chrome
url=https://www.rediff.com/
Binary file modified target/test-classes/Loginpagetest/LandingPageTest.class
Binary file not shown.

0 comments on commit 8be0301

Please sign in to comment.