📜  你的定位器策略是什么 - 无论代码示例

📅  最后修改于: 2022-03-11 15:00:40.244000             🧑  作者: Mango

代码示例1
- First I would check for id. If there is id,
  and it is not dynamic, I would go for id.
- If not, I would quickly check for it if 
  there is unique class or name attribute value
-If it is link, I would use linkText or
  partiallinktext
-If none available than I would go for xpath