cucumber.runtime.CucumberException

Don't know how to convert ""myWebElement"" into org.openqa.selenium.WebElement. Try writing your own converter: @cucumber.deps.com.thoughtworks.xstream.annotations.XStreamConverter(WebElementConverter.class) public class WebElement {}

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web110

  • Don't know how to convert ""myWebElement"" into org.openqa.selenium.WebElement. Try writing your own converter: @cucumber.deps.com.thoughtworks.xstream.annotations.XStreamConverter(WebElementConverter.class) public class WebElement {}
  • Don't know how to convert "10.0" into scala.math.BigDecimal. Try writing your own converter: @cucumber.deps.com.thoughtworks.xstream.annotations.XStreamConverter(BigDecimalConverter.class) public class BigDecimal {}
  • via Google Groups by Paolo Ambrosio, 1 year ago
    Unknown option: --plugin Don't really know what you are trying to do since the exception is from the CLI runner and you pasted JUnit code. I would start by verifying that all jars belong to the same version of Cucumber.
  • Stack trace

    • cucumber.runtime.CucumberException: Don't know how to convert ""myWebElement"" into org.openqa.selenium.WebElement. Try writing your own converter: @cucumber.deps.com.thoughtworks.xstream.annotations.XStreamConverter(WebElementConverter.class) public class WebElement {} at cucumber.runtime.ParameterInfo.convert(ParameterInfo.java:150) at cucumber.runtime.StepDefinitionMatch.transformedArgs(StepDefinitionMatch.java:68) at cucumber.runtime.StepDefinitionMatch.runStep(StepDefinitionMatch.java:37) at cucumber.runtime.Runtime.runStep(Runtime.java:299) at cucumber.runtime.model.StepContainer.runStep(StepContainer.java:44) at cucumber.runtime.model.StepContainer.runSteps(StepContainer.java:39) at cucumber.runtime.model.CucumberScenario.run(CucumberScenario.java:44) at cucumber.runtime.model.CucumberFeature.run(CucumberFeature.java:165) at cucumber.api.testng.TestNGCucumberRunner.runCucumber(TestNGCucumberRunner.java:63) at cucumber.api.testng.AbstractTestNGCucumberTests.feature(AbstractTestNGCucumberTests.java:21) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:80) at org.testng.internal.Invoker.invokeMethod(Invoker.java:714) at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:901) at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1231) at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127) at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:744)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You’re the first here who have seen this exception.