http://www.go2see.ruでチケット検索フォームをテストしています。ボタン、フィールドなどの要素にアクセスしようとしています。2 番目のテキスト フィールド「Destination」に入力する必要があります。次のコードを使用すると、次の例外が発生しました。
from splinter import Browser
browser = Browser()
# Fill in the url
browser.visit('http://www.go2see.ru')
#find and fill 2-nd text field (Destination), right of two air planes
browser.find_by_id('avia-to').first.find_by_tag('input').fill('Moscow')
File "/home/ada015/search_form_testing.py", line 9, in <module>
browser.find_by_id('avia-to').first.find_by_tag('input').fill('Moscow')
File "/usr/local/lib/python2.7/dist-packages/splinter/element_list.py", line 75, in __getattr__
self.__class__.__name__, name))
AttributeError: 'ElementList' object has no attribute 'fill'