Currently, I am utilizing the
driver.manage().timeouts().implicitlyWait(120, TimeUnit.SECONDS);
and driver.manage().window().maximize();
methods in my code. However, encountering an error with the timeouts()
and window()
functions. The error message states: "The method window() is undefined for the type WebDriver.Options", which is also applicable to the timeouts()
. Could someone please assist me in resolving this issue?
Thank you in advance, Manasa.