Call javascript function from Java (Groovy) class
Posted
by ashkanr
on Stack Overflow
See other posts from Stack Overflow
or by ashkanr
Published on 2010-04-24T12:16:20Z
Indexed on
2010/04/24
12:23 UTC
Read the original article
Hit count: 190
Hi, I have a javascript function (very big one!) that I need its functionality in a Java (Groovy) class. It is a simple calendar converter. I can rewrite it in groovy but just want to know if it is possible to call javascript function from a java (groovy) method? I guess functional testing libraries like selenium and Canoo should have something like this, am I right? PS: I don't want to wake up a real-world browser in order to use its JS runtime env.
Thanks,
© Stack Overflow or respective owner