selenium killable error

824 views
Skip to first unread message

prasanna ramesh

unread,
May 4, 2016, 10:01:01 AM5/4/16
to Selenium Users
Hi 


      Below i have mentioned my code and am getting "java.lang.ClassNotFoundException: org.openqa.selenium.internal.Killable".Kindly help me out to fix this bug.

  System.out.println("doGet");
try {

List<URL> url_list;

SessionFactory factory;

factory = new AnnotationConfiguration().configure().addAnnotatedClass(URL.class).buildSessionFactory();

Session session = factory.openSession();

Transaction transaction = null;

url_list = session.createQuery("from URL").list();

System.out.println("urllist size is " + url_list.size());

for (URL url : url_list) {

// FirefoxProfile firefoxProfile = new FirefoxProfile();
//    firefoxProfile.setPreference("xpinstall.signatures.required", false);

System.out.println("before web driver");

WebDriver driver = new FirefoxDriver();
System.out.println("after web driver");
   driver.get(url.getUrl());
 


// Create a new instance of the Firefox driver
//WebDriver driver = new FirefoxDriver();


driver.findElement(By.name(url.getUserNameTag())).sendKeys(url.getUsername());

// Enter Password
driver.findElement(By.name(url.getPasswordTag())).sendKeys(url.getPassword());

// Wait For Page To Load
driver.manage().timeouts().implicitlyWait(60, TimeUnit.SECONDS);

// Click on 'Sign In' button
driver.findElement(By.id(url.getSubmitTag())).click();

// driver.switchTo().window(urls);

// Close the browser.
driver.quit();

// transaction.commit();

}
} catch (Exception e) {
e.printStackTrace();
}

Thanks & Regards

R Prasanna Babu

⇜Krishnan Mahadevan⇝

unread,
May 4, 2016, 11:15:35 PM5/4/16
to Selenium Users
You haven't told us the following. So please feel free to add more context :

1. What selenium version are you using ?
2. How are you setting up your CLASSPATH ? Do you use Maven (or) Ant (or) just download the jars and make it available in your CLASSPATH ?

java.lang.ClassNotFoundException: org.openqa.selenium.internal.Killable

is Java's way of telling you that your CLASSPATH is missing the above mentioned class.

If you are on Maven, you might want to take a look at this thread : https://groups.google.com/forum/embed/#!topic/selenium-developers/ojInlWRmeZw



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/c394d925-baa9-4aa0-9f89-4bc9051deac2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages