I think that having to store and pass in this locator every time you want to use the Modal class is a bit much and I think there's a better way you can do it without passing in a root element.