0

Can someone confirm if selenium 3.9 supports passing string via
sendKeys()?

Test Scenario is given below:

Code Snippet

    textBox.clear();
    System.out.println("cleared");
          textBox.sendKeys("Linux fast pc");
          System.out.println("sent search string in google");`

Error

    Exception in thread "main" org.openqa.selenium.WebDriverException: 
        unknown error: call function result missing 'value'
          (Session info: chrome=65.0.3325.146)
          (Driver info: chromedriver=2.33.506120 
        (e3e53437346286c0bc2d2dc9aa4915ba81d9023f),platform=Windows NT 10.0.16299 x86) 
        (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 0 milliseconds
        Build info: version: '3.9.1', revision: '63f7b50', time: '2018-02-07T22:42:22.379Z'
        System info: host: 'ADMIN-PC', ip: '192.168.1.5', os.name: 'Windows 10', os.arch: 'x86', os.version: '10.0', java.version: '1.8.0_161'
        Driver info: org.openqa.selenium.chrome.ChromeDriver
        Capabilities {acceptSslCerts: true, applicationCacheEnabled: false, 
        browserConnectionEnabled: false, browserName: chrome, chrome: 
        {chromedriverVersion: 2.33.506120 (e3e53437346286..., userDataDir: 
        C:\Users\admin\AppData\Loca...}, cssSelectorsEnabled: true, 
        databaseEnabled: false, handlesAlerts: true, hasTouchScreen: false, 
        javascriptEnabled: true, locationContextEnabled: true, 
        mobileEmulationEnabled: false, nativeEvents: true, 
        networkConnectionEnabled: false, pageLoadStrategy: normal, platform: XP, 
        platformName: XP, rotatable: false, setWindowRect: true, 
        takesHeapSnapshot: true, takesScreenshot: true, 
        unexpectedAlertBehaviour: , unhandledPromptBehavior: , version: 
        65.0.3325.146, webStorageEnabled: true}
        Session ID: 612795efdb79a090f0e9c916e2ef059d
            at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
            at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
            at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
            at java.lang.reflect.Constructor.newInstance(Unknown Source)`

Please write to me if you require any more details.

Regards, Sudeept

Vinay Prajapati
  • 7,199
  • 9
  • 45
  • 86
sudeept
  • 11
  • 1
  • 7
  • 1
    Possible duplicate of [org.openqa.selenium.WebDriverException: unknown error: call function result missing 'value'](https://stackoverflow.com/questions/48609069/org-openqa-selenium-webdriverexception-unknown-error-call-function-result-miss) – Vinay Prajapati Mar 09 '18 at 15:23
  • Please change to chrome 64 and also make sure you have right version of chromedriver – Vinay Prajapati Mar 09 '18 at 15:24
  • I doubt if you are able to reach till `textBox.clear();` even before `sendKeys()` as **Driver info: org.openqa.selenium.chrome.ChromeDriver** – undetected Selenium Mar 09 '18 at 15:35
  • @ Vinay, The chrome 65 is being used alongwith 2.33.506120 version of chromdriver - both are latest – sudeept Mar 09 '18 at 16:40
  • @ Debanjan - the statement before this code block is - if (textBox.isEnabled()) System.out.println("search box enabled"); which is being printed successfully, immediately after this command is textBox.click(); System.out.println("clicked"); which is being printed so i think we can assume its being executed well – sudeept Mar 09 '18 at 16:41

1 Answers1

0

You have to use the latest version ChromeDriver. Download the latest ChromeDriver from here: https://chromedriver.storage.googleapis.com/index.html?path=2.41/

And your problem will be solved.

Payal
  • 53
  • 1
  • 9