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());

}
Click here to read more about Selenium
Click here to read more about Insurance

Related questions

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