What do you want to save?
Add Code snippet
New code examples
-
Other 2022-02-01 05:21:23
which locator do you prefer
- 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 availab... Add solution -
Other 2021-09-26 03:06:02
types of locators in selenium
- There are 8 locators. - id, class, name, linktext, partialLinktext, cssSelector, xpath, tagName - 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 ... Add solution -
Other 2021-09-23 22:14:04
what is your locator strategy
- 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 availab... Add solution
Best helpers
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5