rg.openqa.selenium.WebDriverException: Error Message => ''undefined' is not an object (evaluating 'a.value.length')' caused by Request => {"headers":{"Accept-Encoding":"gzip,deflate","Connection":"Keep-Alive","Content-Length":"150","Content-Type":"application/json; charset=utf-8","Host":"localhost:2565","User-Agent":"Apache-HttpClient/4.3.6 (java 1.5)"},"httpVersion":"1.1","method":"POST","post":"{\"id\":\":wdc:1431121777071\",\"value\":[\"Proin lorem ligula, mattis ut aliquet sed, convallis eu sapien. Aliquam condimentum aliquet dolor non dapibus.\"]}","url":"/value","urlParsed":{"anchor":"","query":"","file":"value","directory":"/","path":"/value","relative":"/value","port":"","host":"","password":"","user":"","userInfo":"","authority":"","protocol":"","source":"/value","queryKey":{},"chunks":["value"]},"urlOriginal":"/session/85682a40-f5cb-11e4-b939-db3a397f2d6a/element/%3Awdc%3A1431121777071/value"} Command duration or timeout: 1.21 seconds Build info: version: '2.45.0', revision: '5017cb8e7ca8e37638dc3091b2440b90a1d8686f', time: '2015-02-27 09:10:26' System info: host: 'devolve', ip: '127.0.1.1', os.name: 'Linux', os.arch: 'amd64', os.version: '3.16.0-31-generic', java.version: '1.8.0_40-internal' Driver info: org.openqa.selenium.phantomjs.PhantomJSDriver Capabilities [{applicationCacheEnabled=false, rotatable=false, handlesAlerts=false, databaseEnabled=false, version=1.9.0, platform=LINUX, browserConnectionEnabled=false, proxy={proxyType=direct}, nativeEvents=true, acceptSslCerts=false, driverVersion=1.0.3, locationContextEnabled=false, webStorageEnabled=false, browserName=phantomjs, takesScreenshot=true, driverName=ghostdriver, javascriptEnabled=true, cssSelectorsEnabled=true}] Session ID: 85682a40-f5cb-11e4-b939-db3a397f2d6a

GitHub | antony | 2 years ago
  1. 0

    sendKeys to non-input element.

    GitHub | 2 years ago | antony
    rg.openqa.selenium.WebDriverException: Error Message => ''undefined' is not an object (evaluating 'a.value.length')' caused by Request => {"headers":{"Accept-Encoding":"gzip,deflate","Connection":"Keep-Alive","Content-Length":"150","Content-Type":"application/json; charset=utf-8","Host":"localhost:2565","User-Agent":"Apache-HttpClient/4.3.6 (java 1.5)"},"httpVersion":"1.1","method":"POST","post":"{\"id\":\":wdc:1431121777071\",\"value\":[\"Proin lorem ligula, mattis ut aliquet sed, convallis eu sapien. Aliquam condimentum aliquet dolor non dapibus.\"]}","url":"/value","urlParsed":{"anchor":"","query":"","file":"value","directory":"/","path":"/value","relative":"/value","port":"","host":"","password":"","user":"","userInfo":"","authority":"","protocol":"","source":"/value","queryKey":{},"chunks":["value"]},"urlOriginal":"/session/85682a40-f5cb-11e4-b939-db3a397f2d6a/element/%3Awdc%3A1431121777071/value"} Command duration or timeout: 1.21 seconds Build info: version: '2.45.0', revision: '5017cb8e7ca8e37638dc3091b2440b90a1d8686f', time: '2015-02-27 09:10:26' System info: host: 'devolve', ip: '127.0.1.1', os.name: 'Linux', os.arch: 'amd64', os.version: '3.16.0-31-generic', java.version: '1.8.0_40-internal' Driver info: org.openqa.selenium.phantomjs.PhantomJSDriver Capabilities [{applicationCacheEnabled=false, rotatable=false, handlesAlerts=false, databaseEnabled=false, version=1.9.0, platform=LINUX, browserConnectionEnabled=false, proxy={proxyType=direct}, nativeEvents=true, acceptSslCerts=false, driverVersion=1.0.3, locationContextEnabled=false, webStorageEnabled=false, browserName=phantomjs, takesScreenshot=true, driverName=ghostdriver, javascriptEnabled=true, cssSelectorsEnabled=true}] Session ID: 85682a40-f5cb-11e4-b939-db3a397f2d6a

    Root Cause Analysis

    1. rg.openqa.selenium.WebDriverException

      Error Message => ''undefined' is not an object (evaluating 'a.value.length')' caused by Request => {"headers":{"Accept-Encoding":"gzip,deflate","Connection":"Keep-Alive","Content-Length":"150","Content-Type":"application/json; charset=utf-8","Host":"localhost:2565","User-Agent":"Apache-HttpClient/4.3.6 (java 1.5)"},"httpVersion":"1.1","method":"POST","post":"{\"id\":\":wdc:1431121777071\",\"value\":[\"Proin lorem ligula, mattis ut aliquet sed, convallis eu sapien. Aliquam condimentum aliquet dolor non dapibus.\"]}","url":"/value","urlParsed":{"anchor":"","query":"","file":"value","directory":"/","path":"/value","relative":"/value","port":"","host":"","password":"","user":"","userInfo":"","authority":"","protocol":"","source":"/value","queryKey":{},"chunks":["value"]},"urlOriginal":"/session/85682a40-f5cb-11e4-b939-db3a397f2d6a/element/%3Awdc%3A1431121777071/value"} Command duration or timeout: 1.21 seconds Build info: version: '2.45.0', revision: '5017cb8e7ca8e37638dc3091b2440b90a1d8686f', time: '2015-02-27 09:10:26' System info: host: 'devolve', ip: '127.0.1.1', os.name: 'Linux', os.arch: 'amd64', os.version: '3.16.0-31-generic', java.version: '1.8.0_40-internal' Driver info: org.openqa.selenium.phantomjs.PhantomJSDriver Capabilities [{applicationCacheEnabled=false, rotatable=false, handlesAlerts=false, databaseEnabled=false, version=1.9.0, platform=LINUX, browserConnectionEnabled=false, proxy={proxyType=direct}, nativeEvents=true, acceptSslCerts=false, driverVersion=1.0.3, locationContextEnabled=false, webStorageEnabled=false, browserName=phantomjs, takesScreenshot=true, driverName=ghostdriver, javascriptEnabled=true, cssSelectorsEnabled=true}] Session ID: 85682a40-f5cb-11e4-b939-db3a397f2d6a

      at org.openqa.selenium.remote.ErrorHandler.createThrowable()
    2. Selenium
      RemoteWebElement.sendKeys
      1. org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:204)
      2. org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:156)
      3. org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:599)
      4. org.openqa.selenium.remote.RemoteWebElement.execute(RemoteWebElement.java:268)
      5. org.openqa.selenium.remote.RemoteWebElement.sendKeys(RemoteWebElement.java:89)
      5 frames
    3. Geb Core
      NonEmptyNavigator.leftShift_closure30
      1. geb.navigator.NonEmptyNavigator.leftShift_closure30(NonEmptyNavigator.groovy:448)
      1 frame
    4. Groovy
      Closure.call
      1. groovy.lang.Closure.call(Closure.java:423)
      2. groovy.lang.Closure.call(Closure.java:439)
      2 frames
    5. Geb Core
      TemplateDerivedPageContent.leftShift
      1. geb.navigator.NonEmptyNavigator.leftShift(NonEmptyNavigator.groovy:447)
      2. geb.content.TemplateDerivedPageContent.leftShift(TemplateDerivedPageContent.groovy:27)
      2 frames