Код:
b = spynner.Browser() b.show() b.load_jquery(True) b.load('https://www.google.com/') b.fill('input[name="q"]', 'test') raw_input('..') b.close()
Установит значение в input.
Что м.б не так?
b = spynner.Browser() b.show() b.load_jquery(True) b.load('https://www.google.com/') b.fill('input[name="q"]', 'test') raw_input('..') b.close()
document.getElementsByName('q')[0].value = 'test'