File tree 17 files changed +23
-36
lines changed
src/com/softwaretestingboard
17 files changed +23
-36
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ public class ChromeDriverExample {
8
8
public static WebDriver driver ;
9
9
10
10
public static void main (String [] args ) {
11
- String exePath = "C: \\ Users \\ HEMANT \\ Desktop \\ Softwares \\ selenium-java-3.4.0 \\ chromedriver_win32\\ chromedriver.exe" ;
11
+ String exePath = "drivers \\ chromedriver_win32\\ chromedriver.exe" ;
12
12
System .setProperty ("webdriver.chrome.driver" , exePath );
13
13
WebDriver driver = new ChromeDriver ();
14
14
// launch Facebook.com using get
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ public class DynamicWebtableExample {
12
12
13
13
public static void main (String [] args ) {
14
14
15
- String exePath = "C: \\ Users \\ HEMANT \\ Desktop \\ Softwares \\ selenium-java-3.4.0 \\ chromedriver_win32\\ chromedriver.exe" ;
15
+ String exePath = "drivers \\ chromedriver_win32\\ chromedriver.exe" ;
16
16
System .setProperty ("webdriver.chrome.driver" , exePath );
17
17
WebDriver driver = new ChromeDriver ();
18
18
String URL = "http://money.rediff.com/gainers/bsc/daily/groupa" ;
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ public class ExplicitWaitExamples {
11
11
12
12
public void explicitwait () throws InterruptedException {
13
13
14
- String exePath = "C: \\ Users \\ HEMANT \\ Desktop \\ Softwares \\ selenium-java-3.4.0 \\ chromedriver_win32\\ chromedriver.exe" ;
14
+ String exePath = "drivers \\ chromedriver_win32\\ chromedriver.exe" ;
15
15
System .setProperty ("webdriver.chrome.driver" , exePath );
16
16
WebDriver driver = new ChromeDriver ();
17
17
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ public class FileUploadExample {
9
9
10
10
public static void main (String [] args ) {
11
11
12
- String exePath = "C: \\ Users \\ HEMANT \\ Desktop \\ Softwares \\ selenium-java-3.4.0 \\ chromedriver_win32\\ chromedriver.exe" ;
12
+ String exePath = "drivers \\ chromedriver_win32\\ chromedriver.exe" ;
13
13
System .setProperty ("webdriver.chrome.driver" , exePath );
14
14
WebDriver driver = new ChromeDriver ();
15
15
String URL = "file:///C:/Users/HEMANT/Desktop/tutorials/Selenium/SoftwareTestingBoard/fileUpload.html" ;
Original file line number Diff line number Diff line change 1
1
package com .softwaretestingboard .examples ;
2
2
3
+ import org .openqa .selenium .By ;
4
+ import org .openqa .selenium .WebDriver ;
5
+ import org .openqa .selenium .WebElement ;
3
6
import org .openqa .selenium .firefox .FirefoxDriver ;
7
+ import org .openqa .selenium .firefox .FirefoxOptions ;
4
8
import org .openqa .selenium .remote .DesiredCapabilities ;
5
9
import java .util .NoSuchElementException ;
6
10
import java .util .concurrent .TimeUnit ;
7
11
import java .util .function .Function ;
8
12
9
- import org .openqa .selenium .*;
10
13
import org .openqa .selenium .support .ui .FluentWait ;
11
14
import org .openqa .selenium .support .ui .Wait ;
12
15
@@ -19,7 +22,8 @@ public static void main(String[] args) throws InterruptedException {
19
22
20
23
DesiredCapabilities capabilities = DesiredCapabilities .firefox ();
21
24
capabilities .setCapability ("marionette" , false );
22
- WebDriver driver = new FirefoxDriver (capabilities );
25
+ FirefoxOptions options = new FirefoxOptions (capabilities );
26
+ WebDriver driver = new FirefoxDriver (options );
23
27
24
28
String baseUrl = "https://accounts.google.com/ServiceLogin?sacu=1&rip=1#identifier" ;
25
29
String expectedTitle = "Sign in - Google Accounts" ;
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ public class IEDriverExample {
9
9
10
10
public static void main (String [] args ) {
11
11
12
- String exePath = "C: \\ Users \\ HEMANT \\ Desktop \\ Softwares \\ iedriverserver\\ IEDriverServer.exe" ;
12
+ String exePath = "drivers \\ iedriverserver\\ IEDriverServer.exe" ;
13
13
InternetExplorerDriverService .Builder serviceBuilder = new InternetExplorerDriverService .Builder ();
14
14
serviceBuilder .usingPort (1080 ); // This specifies that sever should
15
15
// start at this port
Original file line number Diff line number Diff line change 5
5
import org .openqa .selenium .By ;
6
6
import org .openqa .selenium .WebDriver ;
7
7
import org .openqa .selenium .firefox .FirefoxDriver ;
8
+ import org .openqa .selenium .firefox .FirefoxOptions ;
8
9
import org .openqa .selenium .remote .DesiredCapabilities ;
9
10
import org .testng .annotations .BeforeTest ;
10
11
import org .testng .annotations .Test ;
@@ -19,8 +20,8 @@ public void setup() throws Exception {
19
20
20
21
DesiredCapabilities capabilities = DesiredCapabilities .firefox ();
21
22
capabilities .setCapability ("marionette" , false );
22
-
23
- driver = new FirefoxDriver (capabilities );
23
+ FirefoxOptions options = new FirefoxOptions ( capabilities );
24
+ driver = new FirefoxDriver (options );
24
25
25
26
driver .manage ().timeouts ().implicitlyWait (10 , TimeUnit .SECONDS );
26
27
Original file line number Diff line number Diff line change 7
7
public class ImplicitWait {
8
8
9
9
public static void main (String [] args ) {
10
- String exePath = "C: \\ Users \\ HEMANT \\ Desktop \\ Softwares \\ selenium-java-3.4.0 \\ MicrosoftEdgeDriver\\ MicrosoftWebDriver.exe" ;
10
+ String exePath = "drivers \\ MicrosoftEdgeDriver\\ MicrosoftWebDriver.exe" ;
11
11
System .out .println ("launching Microsoft Edge browser" );
12
12
System .setProperty ("webdriver.edge.driver" , exePath );
13
13
Original file line number Diff line number Diff line change 7
7
public class MicrosoftEdge {
8
8
9
9
public static void main (String [] args ) {
10
- String exePath = "C: \\ Users \\ HEMANT \\ Desktop \\ Softwares \\ selenium-java-3.4.0 \\ MicrosoftEdgeDriver\\ MicrosoftWebDriver.exe" ;
10
+ String exePath = "drivers \\ MicrosoftEdgeDriver\\ MicrosoftWebDriver.exe" ;
11
11
System .out .println ("launching Microsoft Edge browser" );
12
12
System .setProperty ("webdriver.edge.driver" , exePath );
13
13
Original file line number Diff line number Diff line change 11
11
public class MultipleSelect {
12
12
public static void main (String [] args ) throws InterruptedException {
13
13
14
- String exePath = "C: \\ Users \\ HEMANT \\ Desktop \\ Softwares \\ selenium-java-3.4.0 \\ chromedriver_win32\\ chromedriver.exe" ;
14
+ String exePath = "drivers \\ chromedriver_win32\\ chromedriver.exe" ;
15
15
System .setProperty ("webdriver.chrome.driver" , exePath );
16
16
WebDriver driver = new ChromeDriver ();
17
17
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ public class Navigationcommand {
9
9
public static void main (String [] args ) throws InterruptedException {
10
10
// TODO Auto-generated method stub
11
11
12
- String exePath = "C: \\ Users \\ HEMANT \\ Desktop \\ Softwares \\ selenium-java-3.4.0 \\ chromedriver_win32\\ chromedriver.exe" ;
12
+ String exePath = "drivers \\ chromedriver_win32\\ chromedriver.exe" ;
13
13
System .setProperty ("webdriver.chrome.driver" , exePath );
14
14
WebDriver driver = new ChromeDriver ();
15
15
String URL = "http://www.facebook.com" ;
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ public class SoftwareTestingMultipleSession {
16
16
17
17
public void executionSessionone () {
18
18
19
- String exePath = "C: \\ Users \\ HEMANT \\ Desktop \\ Softwares \\ selenium-java-3.4.0 \\ chromedriver_win32\\ chromedriver.exe" ;
19
+ String exePath = "drivers \\ chromedriver_win32\\ chromedriver.exe" ;
20
20
System .setProperty ("webdriver.chrome.driver" , exePath );
21
21
WebDriver driver = new ChromeDriver ();
22
22
// launch Browser
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 7
7
public class staticWebtableExample {
8
8
9
9
public static void main (String [] args ) {
10
- String exePath = "C: \\ Users \\ HEMANT \\ Desktop \\ Softwares \\ selenium-java-3.4.0 \\ chromedriver_win32\\ chromedriver.exe" ;
10
+ String exePath = "drivers \\ chromedriver_win32\\ chromedriver.exe" ;
11
11
System .setProperty ("webdriver.chrome.driver" , exePath );
12
12
WebDriver driver = new ChromeDriver ();
13
13
String URL = "C:\\ Users\\ HEMANT\\ Desktop\\ tutorials\\ Selenium\\ SoftwareTestingBoard\\ StaticExample.html" ;
Original file line number Diff line number Diff line change 6
6
import org .openqa .selenium .WebDriver ;
7
7
import org .openqa .selenium .WebElement ;
8
8
import org .openqa .selenium .firefox .FirefoxDriver ;
9
+ import org .openqa .selenium .firefox .FirefoxOptions ;
9
10
import org .openqa .selenium .remote .DesiredCapabilities ;
10
11
import org .testng .annotations .Test ;
11
12
@@ -20,7 +21,8 @@ public void loginAction() {
20
21
21
22
DesiredCapabilities capabilities = DesiredCapabilities .firefox ();
22
23
capabilities .setCapability ("marionette" , false );
23
- driver = new FirefoxDriver (capabilities );
24
+ FirefoxOptions options = new FirefoxOptions (capabilities );
25
+ driver = new FirefoxDriver (options );
24
26
// launch Browser
25
27
driver .get (baseUrl );
26
28
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 4
4
import java .io .FileNotFoundException ;
5
5
import java .io .IOException ;
6
6
7
- import org .apache .poi .xssf .usermodel .XSSFCell ;
8
- import org .apache .poi .xssf .usermodel .XSSFRow ;
9
- import org .apache .poi .xssf .usermodel .XSSFSheet ;
10
- import org .apache .poi .xssf .usermodel .XSSFWorkbook ;
11
7
12
8
public class ExcelUtils {
13
9
You can’t perform that action at this time.
0 commit comments