Executing selenium from a servlet program and a jsp page to test a 2nd html page

120 views
Skip to first unread message

Javier Antonio Brito Sanchez

unread,
May 14, 2015, 9:07:02 AM5/14/15
to seleniu...@googlegroups.com
Is it possible to exxecute selenium commands from a jsp file? plese help me im traying and i cant i've attached the library selenium and my server trows an error: NoClassDefFoundError: org/openqa/selenium/WebDriver

Krishnan Mahadevan

unread,
May 14, 2015, 10:59:36 AM5/14/15
to Selenium Users
Javier,

A NoClassDefFoundError is normally an indication of you having a messed up CLASSPATH.
You would need to take a closer look at the libs folder that are available for your servlet application.
Based on your webserver you could try adding the Selenium jars to your webserver's lib folder itself so that the webserver shares the jars with your jsp based web application.


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/

On Wed, May 13, 2015 at 9:36 PM, Javier Antonio Brito Sanchez <logi...@transportesbrisa.com.mx> wrote:
Is it possible to exxecute selenium commands from a jsp file? plese help me im traying and i cant i've attached the library selenium and my server trows an error: NoClassDefFoundError: org/openqa/selenium/WebDriver

--
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/4eaa92c4-0ec7-442d-9864-8e9bdd43fd71%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages