fix: use template literal

This commit is contained in:
Jacob Kim 2025-07-23 12:07:39 -07:00
parent 6c046263ea
commit c4d50e7943

View file

@ -34,7 +34,7 @@ export class SelectorUtils {
return driver.findElement(
// By.xpath("//*[contains(@class, 'ced-') and matches(@class, 'ced-2-TextEditorDecorationType[0-9]+-4')]")
// By.css(`[class*='${className}']`),
By.xpath("//span[contains(@class, '${className}')]"),
By.xpath(`//span[contains(@class, '${className}')]`),
// By.css("div[class*='TextEditorDecorationType'][style*='filter']")
);
}