Skip to content

Commit

Permalink
updated jars
Browse files Browse the repository at this point in the history
  • Loading branch information
navneetMaantic committed Apr 22, 2024
1 parent 4711fe8 commit f8ce218
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
File renamed without changes.
Binary file modified scrape_test.xlsx
Binary file not shown.
Binary file modified scraperChrome.jar
Binary file not shown.
Binary file modified scraperEdge.jar
Binary file not shown.
12 changes: 6 additions & 6 deletions src/test/java/scraper.java
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ public class scraper {
static WebDriver driver;
static WebDriver driver2;
static WebDriver driver3;
static ChromeOptions options = new ChromeOptions();
// static EdgeOptions options = new EdgeOptions();
// static ChromeOptions options = new ChromeOptions();
static EdgeOptions options = new EdgeOptions();

public static void main(String[] args) throws Exception {
try {
Expand Down Expand Up @@ -128,7 +128,7 @@ public static void main(String[] args) throws Exception {
DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setCapability(ChromeOptions.CAPABILITY, options);
options.merge(capabilities);
driver = new ChromeDriver(options);
driver = new EdgeDriver(options);
driver.get(NSEURL);
long startTime = System.nanoTime();
long endTime;
Expand All @@ -147,7 +147,7 @@ public static void main(String[] args) throws Exception {
driver.quit();
} else {
// open ICICI direct site for frequency
driver3 = new ChromeDriver(options);
driver3 = new EdgeDriver(options);
driver3.get(iciciDirectURL);

// NSE BOND site now
Expand Down Expand Up @@ -195,7 +195,7 @@ public static void main(String[] args) throws Exception {
bondNSEURL = "https://www.nseindia.com/get-quotes/bonds?symbol=" + symbolValue
+ "&series=" + seriesValue + "&maturityDate=" + maturityDateValue;
System.out.println(symbolValue + "__" + seriesValue);
driver2 = new ChromeDriver(options);
driver2 = new EdgeDriver(options);
driver2.get(bondNSEURL);
Thread.sleep(3000);
getASKandQTY();
Expand Down Expand Up @@ -240,7 +240,7 @@ public static void main(String[] args) throws Exception {
bondNSEURL = "https://www.nseindia.com/get-quotes/bonds?symbol=" + symbolValue
+ "&series=" + seriesValue + "&maturityDate=" + maturityDateValue;
System.out.println(symbolValue + "__" + seriesValue);
driver2 = new ChromeDriver(options);
driver2 = new EdgeDriver(options);
driver2.get(bondNSEURL);
Thread.sleep(3000);
getASKandQTY();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#Generated by Maven Integration for Eclipse
#Fri Apr 19 19:37:32 IST 2024
#Mon Apr 22 09:31:53 IST 2024
m2e.projectLocation=C\:\\Users\\User\\eclipse-workspace\\SeleniumScraper
m2e.projectName=SeleniumScraper
groupId=com.scraper
Expand Down
Binary file modified target/test-classes/scraper.class
Binary file not shown.

0 comments on commit f8ce218

Please sign in to comment.