mirror of
https://github.com/priyanshujain/sanderling.git
synced 2026-10-04 12:07:09 +00:00
feat(chrome): translate idPrefix to a starts-with id match
This commit is contained in:
1 parent
1fcb7a9f7d
commit
59975231ce
2 files changed
+5
No files matched your search
@@ -32,6 +32,8 @@ func TranslateStringSelector(selector string) (string, bool, error) {
|
||||
switch kind {
|
||||
case "id", "resource-id":
|
||||
return `[id="` + cssEscape(value) + `"]`, false, nil
|
||||
case "idPrefix":
|
||||
return `[id^="` + cssEscape(value) + `"]`, false, nil
|
||||
case "class":
|
||||
return `[class~="` + cssEscape(value) + `"]`, false, nil
|
||||
case "tag":
|
||||
|
||||
Reference in new issue
Block a user