Mayank,
What does your test look like?
Thanks & Regards
Krishnan Mahadevan
"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/
My Technical Scribbings @ http://rationaleemotions.wordpress.com/
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/1d6c85c8-fba4-4281-9cb0-ce24a0feafd6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
package Test;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.safari.SafariDriver;
public class BrowserInvoke {
public static void main(String[] args) {
WebDriver driver = new SafariDriver();
driver.get("https://google.com");
System.out.println(driver.getTitle());
}
}
The bug lies in your code. You have not invoked driver.quit()
If you don’t invoke driver.quit() the server binary is not exited and that’s why you are getting that error.
Here’s a sample that shows what I am talking about :
public class SafariDriverTest {
public static void main(String[] args) {
SafariDriver driver = new SafariDriver();
try {
driver.get("http://www.google.com");
System.err.println("Title :" + driver.getTitle());
} finally {
driver.quit();
}
}
}
Thanks & Regards
Krishnan Mahadevan
"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/
My Technical Scribbings @ http://rationaleemotions.wordpress.com/
From: <seleniu...@googlegroups.com> on behalf of Mayank Mittal <mayank...@gmail.com>
Reply-To: <seleniu...@googlegroups.com>
Date: Thursday, August 17, 2017 at 9:51 PM
To: Selenium Users <seleniu...@googlegroups.com>
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/ea277ae8-5a89-4499-8225-a41c22fc41aa%40googlegroups.com.