var c = a + b;
and my Java Code for Selenium-WebDriver is as follows
Object result = null;
result = executor.executeScript("return(CallMe(5,4))");
System.out.println("Alert not found");
Now the output of the following java program is coming as “Hello” which is the text of the alert box whereas if I remove the alert box then the result is “9” which is what i expected.
Also an alternate solution will be highly appreciated.