Selenium-Webdriverを使用してMochaテストを実行すると、
driver.get(destinationPage);
driver.wait(function() {
return driver.isElementPresent(By.xpath(xpathLocation));
}, 3000);
driver.findElement(By.xpath(xpathLocation))
.sendkeys('87654321');
done();
しかし、私はエラーが発生していますTypeError: Object [object Object] has no method 'sendkeys'
なぜでしょうか?wait() によって返されるもの (もしあれば) は何ですか?
ありがとうございました!