trevortrevor
09/17/2017, 6:26 AMUnintializedPage<T> where T: IPage
and use my loading function as a way to extract the type T
, with the goal of making it impossible to retrieve a page without initializing it. I think this is kinda similar to the elvis operator converting String? to String, but instead of proving something isn’t null, it proves some html has loaded in selenium. I think it would be like changing the logic of the ?:
operator to check if a page model is loaded, and timeout if it isn’t. Probably more complicated than it needs to be, but would be neat to enforce this requirement using the type system.