Closed sridharaiyer closed 2 years ago
Hi I was able to overcome the Wait issue by instantiating the Wait like this -
public class BasePageExtended<T extends BasePage> extends BasePage {
protected Wait<WebDriver> wait = new WebDriverWait(driver, 30);
But I am still seeing some warnings in terms of "generifying" my code, when my pages extend the BasePageExtended
class. Screenshots below.
Can you kindly help me get rid of these warnings?
the correct extension is BasePageExtended<T extends BasePage<T>> extends BasePage<T>
Thank you team. The extension is working fine now. Closing this ticket.
Describe the Issue This is reopening the issue #357 I extended the BasePage as
public class BasePageExtended<T extends BasePage> extends BasePage
And extended this class for my page object class as:public class MyPage extends BasePageExtended<MyPage>
I am unable to use the
wait.until
methods in my page object as the compiler complains saying it is expecting a WebElement but getting an object insteadTo Reproduce Steps to reproduce the behavior:
Expected Behaviour Should be able to extend the BasePage as BasePageExtended and extend that for my pages without any issue.