1 Answer

0 votes
by
By using “Try Catch Block” within Selenium WebDriver Java tests.

try {

     driver.get("www.SoftwareTestingMaterial.com");

}catch(Exception e){

     System.out.println(e.getMessage());

}

1

2

3

4

5

try {

     driver.get("www.SoftwareTestingMaterial.com");

}catch(Exception e){

     System.out.println(e.getMessage());

}

Related questions

0 votes
asked Aug 22, 2019 in Selenium by john ganales
0 votes
asked Aug 22, 2019 in Selenium by john ganales
...