I have a reoccuring element I’d like to build a custom Locator API for. How can I extend the Locator class. It seems like I can only import the interface and implement it. I don’t want rewrite that whole class, I just want to extend it for a few unique methods and flows. How do I import and inherit from the actual class ?
I have a reoccuring element I’d like to build a custom Locator API for. How can I extend the Locator class? It seems like I can only import the interface and implement it. I don’t want rewrite that whole class, I just want to extend it for a few unique methods and flows. How do I import and inherit from the actual class ?
Example of what I’d like:
class CustomElement extends Locator {
constructor(frame: Frame, selector: string, options?: LocatorOptions){
super(...args);
}
openSearchDialog(){}
}