-
Terminally Deprecated ElementsElementDescriptioninstead of retrieving
IOSDriver, cast yourWebDriverto the needed interface, e.g.SupportsRotationorHidesKeyboard.instead of retrievingAndroidDriver, cast yourWebDriverto the needed interface, e.g.SupportsRotationorHidesKeyboard.instead of using this method, just cast yourWebDriverto the needed interface, e.g.JavascriptExecutororTakesScreenshot.instead of using this method, just cast yourWebDriverto the needed interface, e.g.JavascriptExecutororTakesScreenshot.instead of using this method, just cast yourWebDriverto the needed interface, e.g.JavascriptExecutororTakesScreenshot.instead of using this method, just cast yourWebDriverto the needed interface, e.g.JavascriptExecutororTakesScreenshot.instead of using this method, just cast yourWebDriverto the needed interface, e.g.JavascriptExecutororTakesScreenshot.
-
Deprecated FieldsFieldDescriptionDon't use this setting. It leaves the browser and webdriver open. User can later close the browser manually, but the webdriver leaves running forever. To achieve the same effect, just add `sleep(600_000)` in your test.
-
Deprecated MethodsMethodDescriptioninstead of retrieving
AndroidDriver, cast yourWebDriverto the needed interface, e.g.SupportsRotationorHidesKeyboard.instead of retrievingIOSDriver, cast yourWebDriverto the needed interface, e.g.SupportsRotationorHidesKeyboard.instead of retrievingAndroidDriver, cast yourWebDriverto the needed interface, e.g.SupportsRotationorHidesKeyboard.UseAppiumScrollOptions.getMaxSwipeCount()insteadDon't use this setting. It leaves the browser and webdriver open. User can later close the browser manually, but the webdriver leaves running forever.It's easier to override methodFluentCommand.execute(WebElementSource, Object[])instead.instead of using this method, just cast yourWebDriverto the needed interface, e.g.JavascriptExecutororTakesScreenshot.instead of using this method, just cast yourWebDriverto the needed interface, e.g.JavascriptExecutororTakesScreenshot.instead of using this method, just cast yourWebDriverto the needed interface, e.g.JavascriptExecutororTakesScreenshot.instead of using this method, just cast yourWebDriverto the needed interface, e.g.JavascriptExecutororTakesScreenshot.instead of using this method, just cast yourWebDriverto the needed interface, e.g.JavascriptExecutororTakesScreenshot.Use method {SelenideElement.download(DownloadOptions)} insteadUse method {SelenideElement.download(DownloadOptions)} insteadThe boolean parameter is not well-readable. We recommend using methodSelenideElement.scrollIntoView(ScrollIntoViewOptions)instead:- replace
$.scrollIntoView(true)by$.scrollIntoView(instant().block(start)) - replace
$.scrollIntoView(false)by$.scrollIntoView(instant().block(end))
instant()ignores "scroll-behavior" and performs the scrolling instantly.The String parameter is not convenient to write. We recommend using methodSelenideElement.scrollIntoView(ScrollIntoViewOptions)instead:$.scrollIntoView(instant().block(start))$.scrollIntoView(instant().block(end).inline(nearest))
instant()ignores "scroll-behavior" and performs the scrolling instantly.Use methodSelenide.closeWebDriver()instead - replace
AndroidDriver, cast yourWebDriverto the needed interface, e.g.SupportsRotationorHidesKeyboard.