is possible call new operator create new javascript object directly java obtaining jsobject?
for example, know can do:
browser.executejavascript("var mystring = new string('hello world');"); , do: jsobject hello = browser.executejavascript("mystring"), mystring object java. possible to in 1 call? like
jsobject hello = new jsstring("hello world")?
thanks
you can use following approach instantiate javascript object on java side:
jsobject object = browser.getjscontext().createobject();
Comments
Post a Comment