Filling a password form with Splinter

后端 未结 3 1604
一个人的身影
一个人的身影 2021-01-03 13:04

I\'m trying to fill two forms and login to my banks website.

I can get the first form for the username to fill but I can\'t seem to get the form for the password to

3条回答
  •  Happy的楠姐
    2021-01-03 13:12

    The error indicates that you are trying to fill a list of elements. You need to select just one of the elements in the list. You probably want something like:

    find_by_name('foo').first.fill()
    

提交回复
热议问题