I have executed selenium script using Grid. Script is failed due to SERVER INERNAL ERROR message. Please help me on this.
Selenium Version: 2.53
OS: MAC OS
Safari Brower version 9
Error Message :-
Returned value cannot be converted to WebElement: SERVER INTERNAL ERROR: Serve() returned a null response. Build info: version: '2.53.0', revision: '35ae25b1534ae328c771e0856c93e187490ca824', time: '2016-03-15 10:43:46' System info: host: 'TEST', ip: '101.17.12.197', os.name: 'Windows Server 2008 R2', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_131' Driver info: driver.version: RemoteWebDriver Caused by: java.lang.ClassCastException: java.lang.String cannot be cast to org.openqa.selenium.WebElement
Regards
Poovaraj
You might want to try using the latest released version of Selenium [3.5.1].
I am not sure what is causing the ClassCastException because you haven’t shown us the code that you are working with.
Thanks & Regards
Krishnan Mahadevan
"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/
My Technical Scribbings @ http://rationaleemotions.wordpress.com/
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CAMu9-ZUsi-zpA9M_XfD8Qs7Hmjh9ELa4hWM5QujMOKgsUfBsKA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Selenium Version: 2.53
OS: MAC OS
Safari Browser version 9
Aug 24, 2017 2:23:33 PM org.openqa.selenium.support.ui.ExpectedConditions findElement
WARNING: WebDriverException thrown by findElement(By.id: MainContent_LoginButton)
org.openqa.selenium.WebDriverException: Returned value cannot be converted to WebElement: SERVER INTERNAL ERROR: Serve() returned a null response.
Build info: version: '2.53.0', revision: '35ae25b1534ae328c771e0856c93e187490ca824', time: '2016-03-15 10:43:46'
System info: host: 'Testing', ip: '101.71.2.07', os.name: 'Windows Server 2008 R2', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_131'
Driver info: driver.version: RemoteWebDriver
at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:370)
at org.openqa.selenium.remote.RemoteWebDriver.findElementById(RemoteWebDriver.java:413)
at org.openqa.selenium.By$ById.findElement(By.java:218)
at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:355)
at org.openqa.selenium.support.ui.ExpectedConditions.findElement(ExpectedConditions.java:899)
at org.openqa.selenium.support.ui.ExpectedConditions.access$000(ExpectedConditions.java:41)
at org.openqa.selenium.support.ui.ExpectedConditions$7.apply(ExpectedConditions.java:205)
at org.openqa.selenium.support.ui.ExpectedConditions$7.apply(ExpectedConditions.java:201)
at org.openqa.selenium.support.ui.ExpectedConditions$22.apply(ExpectedConditions.java:653)
at org.openqa.selenium.support.ui.ExpectedConditions$22.apply(ExpectedConditions.java:646)
at org.openqa.selenium.support.ui.FluentWait.until(FluentWait.java:238)
at businessComponents.GeneralComponents.invokeApplication(GeneralComponents.java:77)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.test.Framework.DriverScript.invokeBusinessComponent(DriverScript.java:699)
at com.test.Framework.DriverScript.executeTestcase(DriverScript.java:642)
at com.test.Framework.DriverScript.executeFRAMEWORKTestIterations(DriverScript.java:589)
at com.test.Framework.DriverScript.executeFramework(DriverScript.java:156)
at com.test.Framework.DriverScript.driveTestExecution(DriverScript.java:149)
at runners.ParallelRunner.run(ParallelRunner.java:48)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.ClassCastException: java.lang.String cannot be cast to org.openqa.selenium.WebElement
at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:368)
... 24 more