--
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/f11836a2-5562-46a8-bf4f-f35a4f6501d2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<version>2.53.0</version>
</dependency>
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-server</artifactId>
<version>2.53.0</version>
</dependency>
--
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/a555bf63-7883-4b10-8a39-9ef7d3b922bc%40googlegroups.com.
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-server</artifactId>
<version>2.53.0</version>
</dependency>
public class FirefoxDemo {
public static void main(String[] args) {
FirefoxDriver driver = null;
try {
driver = new FirefoxDriver();
String location = driver.getClass().getProtectionDomain().getCodeSource()
.getLocation().toExternalForm();
System.err.println("Working with Selenium : " + new File(location).getParentFile().getName());
driver.get("http://the-internet.herokuapp.com");
System.err.println("Page Title :" + driver.getTitle());
String userAgent = (String) driver.executeScript("return navigator.userAgent;");
ReadableUserAgent ua =
UADetectorServiceFactory.getResourceModuleParser().parse(userAgent);
String browserVersion = ua.getVersionNumber().getMajor() + "." + ua.getVersionNumber().getMinor();
String osName = ua.getOperatingSystem().getName();
String osVersion = ua.getOperatingSystem().getVersionNumber().getMajor() + "." +
ua.getOperatingSystem().getVersionNumber().getMinor();
String msg = String.format("Running %s version:%s on %s version :%s", ua.getName(), browserVersion,
osName, osVersion);
System.err.println("**" + msg);
} finally {
if (driver != null) {
driver.quit();
}
}
}
}
--
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/3d05f243-6078-4ad3-9123-f784fbe2e9aa%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/eaf90253-66c4-4c23-82d5-5dd968cb3aec%40googlegroups.com.
How are you setting up your classpath ?
In the case of Heinz they were working with a maven project and their project was also depending upon phantomjs. Is that the case with you as well ?
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/
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/2d76162a-2a51-443b-83c6-858d402c2388%40googlegroups.com.