Filling a password form with Splinter

后端 未结 3 1586
一个人的身影
一个人的身影 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条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-03 13:28

    Without getting too deep into your code, and taking a quick look at that site (where the ID's have changed, I might add), I would say you probably added an extra '#' into your find_by_id('#easnhbcc') call. The '#' is typical CSS language for an ID, but the find_by_id() splinter call does not expect it. either

    find_by_id('easnhbcc')
    

    or

    find_by_css('#easnhbcc')
    

    probably would have done the trick for you.

提交回复
热议问题