0
我正在写selenium tests用于使用jquery自动完成的输入字段。 我有建议使用typeKeys
方法。 但它不工作:typeKeys在硒中不工作
var soda = require('soda')
, assert = require('assert');
var browser = soda.createClient({
host: 'localhost'
, port: 4444
, url: 'http://en.wikipedia.org/wiki/Wikipedia'
, browser: 'firefox'
});
browser.session(function(err){
browser.open('/', function(err, body, res){
browser.typeKeys('searchInput', 'Hello',
function(err, body, res){
// browser.testComplete(function(){
// });
});
});
});
没有出现在searchInput
领域。