I'm really new to Jython and I have a code like this:
interpreter.exec("import sys\nsys.path.append('my-path')\nimport hello");
PyObject someFunc = interpreter.get("getDriverObect");
someFunc is always null! Here is the corresponding code for python:
from selenium import webdriver
def getDriverObect():
c = webdriver.Safari()
return c
I tried the following the combination as well, nothing is working out:
PyObject someFunc = interpreter.get("hello.getDriverObect");
PyObject someFunc = interpreter.get("hello.getDriverObect()");
PyObject someFunc = interpreter.get("getDriverObect()");
Where I'm making mistake?