I am getting the following error:
Bound mismatch: The generic method constructPage(WebDriver, int, Class) of type
Page is not applicab
If you still wish HomePage
to extend SecuredPage
with the presence of Bounded Generics, please pass the 'Generic Substitution' till HomePage.
Do not substitute Generic at SecuredPage
, instead make SecuredPage
as
public class SecuredPage> extends Page {
}
and while creating HomePage
, declare the value for the generic like this,
public class HomePage extends SecuredPage {
}
This should essentially solve the error