Selenium WebDriverException: unknown error: call function result missing 'value' while calling sendkeys method

后端 未结 3 1128
死守一世寂寞
死守一世寂寞 2020-11-27 07:46

When trying to call Sendkeys method in selenium webdriver it is displaying below error:

Exception in thread \"main\" org.openqa.selenium.WebDriverException:          


        
3条回答
  •  醉梦人生
    2020-11-27 08:37

    An older version of the ChromeDriver is being spun off when the test is being run; to remedy:

    • Ensure that you've gotten your browser up to date (v65-67) and get the latest version of the ChromeDriver executable(v2.38)
    • Extract the ChromeDriver and explicitly set the System property when initializing the ChromeDriver object...

    Ex:

    1. System.setProperty("webdriver.chrome.driver", "/path/to/chromedriver.exe");
    2. WebDriver driver = new ChromeDriver();

提交回复
热议问题