登录输入的 Xpath 类型定位器
Xpath type locator for the Login input
我想了解这个,但我有点困惑:
Taking the following login as an example, if we want to identify an
xpath type locator for the Login input, what would it be the most appropriate option as a good practice. Note that all
of these options work correctly when locating the Login (input)
object.
图片:
有人能帮帮我吗?
在以下建议中:
最规范的 是 选项 b:
//input[@id='user_login']
我想了解这个,但我有点困惑:
Taking the following login as an example, if we want to identify an xpath type locator for the Login input, what would it be the most appropriate option as a good practice. Note that all of these options work correctly when locating the Login (input) object.
图片:
有人能帮帮我吗?
在以下建议中:
最规范的
//input[@id='user_login']