Bitwarden 自定义字段问题

大佬们

根据 Custom Fields | Bitwarden Help Center 页面的说明

我检查网页后得到

<input class="el-input__inner" aria-invalid="false" type="email" autocomplete="off" tabindex="0" placeholder="" id="el-id-4239-10">

<input class="el-input__inner" aria-invalid="false" type="password" autocomplete="off" tabindex="0" placeholder="" id="el-id-4239-12">

我设置自定义字段名称为 el-id-4239-10 是可以使用自动填充的,但这个值会变,所以我设置成了

regex=el-id-*-*

这样可以使用自动填充,而且也不会因为id改变而失效,但没办法分辨邮箱和密码

请问该怎么填写才好

原始网页在这里

https://app.bujidao.org/login

If you are naming a custom field manually, you should use one of the following HTML form element attributes/values in order of preference:

  1. HTML form element’s id attribute.
  2. HTML form element’s name attribute.
  3. HTML form element’s aria-label attribute.
  4. HTML form element’s placeholder attribute.

看来不匹配type,所以貌似无解。

试了好几种方法都不行,问AI一个劲的回答各种css选择器,实在没招了:joy:

你贴的链接里已经说了匹配规则,就是我引用的那段,里面不包括type属性,但你这个例子必须用tyoe属性匹配,所以无解。

你可以给bitwarden官方提个建议支持匹配type

没用过这个工具,能不能尝试使用label的值进行判断呢?

1 Like

From 快问快答 to 开发调优

1 Like