MarkusBernhardt / robotframework-selenium2library-java

Java port of the Selenium 2 (WebDriver) Python library for Robot Framework
Apache License 2.0
46 stars 48 forks source link

Unable to run Selenium2Library from jrobotremoteServer as Overloaded keywords are not supported #5

Closed mdiwakar closed 11 years ago

mdiwakar commented 11 years ago

Unable to run Selenium2Library from jrobotremoteServer as Overloaded keywords are not supported

    at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:603)
    at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:538)
    at java.lang.Thread.run(Thread.java:662)

Caused by: java.lang.RuntimeException: java.lang.RuntimeException: Overloaded method with name 'waitUntilPageNotContain ' found! at org.robotframework.remoteserver.servlet.ServerMethods.get_keyword_names(ServerMethods.java:60) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.xmlrpc.server.ReflectiveXmlRpcHandler.invoke(ReflectiveXmlRpcHandler.java:115) ... 29 more Caused by: java.lang.RuntimeException: Overloaded method with name 'waitUntilPageNotContains' found! at org.robotframework.remoteserver.javalib.SimpleKeywordExtractor.extractKeywords(SimpleKeywordExtractor.java:3

MarkusBernhardt commented 11 years ago

I'm not sure what I can do about that. I saw you also opened an issue at jrobotremoteserver https://github.com/ombre42/jrobotremoteserver/issues/6 . I believe this has to be fixed there.

AFAIU there should be a solution for that using javalibcore and an annotation based library. Problem is the Selenium2Library does not use javalibcore, because I saw no value in using it and I'm not sure what impact this has.

mdiwakar commented 11 years ago

I don't think there is big impact, only thing is we will not be able to run this library from remoteserver

MarkusBernhardt commented 11 years ago

Sorry, I have not meant it that way. I'm not sure how complicated it is to intergate javalibcore.

MarkusBernhardt commented 11 years ago

Do you have any example what has to be done to get it working?

mdiwakar commented 11 years ago

I think the issue is either with jremoteserver or javalibcore, we can close this ticket for now, will update with my findings soon

On Thu, May 2, 2013 at 2:46 PM, Markus Bernhardt notifications@github.comwrote:

Do you have any example what has to be done to get it working?

— Reply to this email directly or view it on GitHubhttps://github.com/MarkusBernhardt/robotframework-selenium2library-java/issues/5#issuecomment-17366880 .

MarkusBernhardt commented 11 years ago

Closing and waiting for more information

daluu commented 11 years ago

Hmm...I'd be curious to wonder if this library would work under the original/old jrobotremoteserver or not. Likely not, but worth a try regardless. Though the old server is pale in comparison to the new in terms of feature support / functionality. Maybe it might (or might not) be easier to retrofit the old jrobotremoteserver to support method overloading / this library, since it doesn't use JavaLibCore.

http://code.google.com/p/jrobotremoteserver/