src/test/java/uk/nhs/nhsbsa/ccchs/helpers/cucumberMethods/JavascriptHandlingMethods.java
/**Method to handle alert
	 * @param decision : String : Accept or dismiss alert
	 */
Method to handle alert
@param decision : String : Accept or dismiss alert
Method to handle alert @param decision : String : Accept or dismiss alert
public void handleAlert(String decision)
	{
		if(decision.equals("accept"))
			driver.switchTo().alert().accept();
		else
			driver.switchTo().alert().dismiss();
	}
public void handleAlert ( String decision ) { if ( decision . equals ( "accept" ) ) driver . switchTo ( ) . alert ( ) . accept ( ) ; else driver . switchTo ( ) . alert ( ) . dismiss ( ) ; }
Method to handle alert
 @param decision : String : Accept or dismiss alert
Method to handle alert @param decision : String : Accept or dismiss alert