+ 1

unable to run a Selenium test case

Exception org.openqa.selenium.WebDriverException Message: name cannot be more than 255 characters

9th May 2019, 7:05 AM
Mamatha G
Mamatha G - avatar
3 Respostas
+ 1
I would gues that you are trying to do something with files that have a relative name/path on your machine it is ok. On browserstack inside virtual machine relative name is added to some long path to folder... And became longer than 255 chars. It is hard to gues without full stack trace and source code.
9th May 2019, 7:18 AM
Dima Makieiev
Dima Makieiev - avatar
0
Thank you Dima Makieiev .. I wish I could post the full stack trace , but the word count here is not allowing , hence posted part of it
9th May 2019, 7:46 AM
Mamatha G
Mamatha G - avatar
0
Stacktrace: at sun.reflect.GeneratedConstructorAccessor179.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:423) at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:214) at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:166) at org.openqa.selenium.remote.JsonWireProtocolResponse.lambda$new$0(JsonWireProtocolResponse.java:53) at org.openqa.selenium.remote.JsonWireProtocolResponse.lambda$getResponseFunction$2(JsonWireProtocolResponse.java:91) at org.openqa.selenium.remote.ProtocolHandshake.lambda$createSession$0(ProtocolHandshake.java:123) at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193) at java.util.Spliterators$ArraySpliterator.tryAdvance(Spliterators.java:958) at java.util.stream.ReferencePipeline.forEachWithCancel(ReferencePipeline.java:126) at java.util.stream.AbstractPipeline.copyIntoWithCancel(AbstractPipeline.java:498) at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:485)
9th May 2019, 7:48 AM
Mamatha G
Mamatha G - avatar