Official Selenium Blog

August 2, 2010

A Smattering of Selenium #22

Filed under: Uncategorized — adam goucher @ 1:12 pm UTC

Happy Simcoe Day. Only a handful of links this week to mention.

  • Kevin relaunched Mogotestsee your website the way your users do.
  • In a much earlier Smattering I think I linked to an announcement about a Se talk at Boston.rb. Well, here are the slides
  • While not directly related to Se, the W3C has released their Unified Validator called, wait for it, Unicorn. So who is going to create the integration that magically sends pages to be validated there?
  • ‘Ad Hoc Workflows’ appears to be a plugin for Confluence, and is a user of Se. They released a video last week of their tests in action. (Make sure to have you volume up for the great soundtrack)
  • The exploration of Se 2 and Ruby gets even deeper with Adding automation to your Selenium 2.0 tests (Ruby) – oh, and RSpec and Rake.
  • Michael guest posted on this blog on How to use Selenium 2 with Maven which was a bit of a mystery as we internally changed how thing work around Maven but forgot to really communicate that.
  • Sauce Labs is having a webinar this Thursday on Cloud-Based Web Application Testing for Adobe Flex and Flash. Register now, etc.
  • Selenium browser UnitTesting from TeamCity is full of XML and C# that I’m sure would make sense to people familiar to TeamCity

1 Comment »

  1. Hi,
    I’ve worked earlier on selenium with Nunit. Now, I need to test an application using Junit with Eclipse IDE. Am using Selenium IDE 1.0.7, Eclipse Galileo. I also downloaded selenium-2.0a5 and added selenium-java-2.0a5.jar and selenium-java-2.0a5-srcs.jar files.

    import org.openqa.selenium.By;
    import org.openqa.selenium.WebDriver;
    import org.openqa.selenium.WebElement;
    import org.openqa.selenium.htmlunit.HtmlUnitDriver;
    import org.openqa.selenium.ie.InternetExplorerDriver;

    public class ExWebDri {
    public static void main(String[] args) {
    InternetExplorerDriver ie= new InternetExplorerDriver();
    ie.get(“http://www.google.com”);

    }
    }

    Still am unable to use the Web driver classes, methods and interfaces. the following error is returned in Eclipse when am trying to run the ABOVE CODE.

    Exception in thread “main” java.lang.NoClassDefFoundError: com/sun/jna/win32/StdCallLibrary
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClassCond(Unknown Source)
    at java.lang.ClassLoader.defineClass(Unknown Source)
    at java.security.SecureClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.access$000(Unknown Source)
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at org.openqa.selenium.ie.InternetExplorerDriver.initializeLib(InternetExplorerDriver.java:565)
    at org.openqa.selenium.ie.InternetExplorerDriver.(InternetExplorerDriver.java:79)
    at org.openqa.selenium.ie.InternetExplorerDriver.(InternetExplorerDriver.java:71)
    at package1.ExWebDri.main(ExWebDri.java:11)
    Caused by: java.lang.ClassNotFoundException: com.sun.jna.win32.StdCallLibrary
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)

    Trouble shooting steps I tried:
    Tried to find the POM.xml file to add the dependency but i couldn’t find the POM.xml file for selenium-java-client-driver-1.0.1.

    Where can i find the updated java client driver containing WEBDRIVER.

    Please advise, Whether the steps i followed are correct if not please guide me.

    Comment by Vinay — August 3, 2010 @ 4:40 am UTC | Reply


RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Create a free website or blog at WordPress.com.

%d bloggers like this: