Selenide v3.0 Release Notes
-
๐ New functions:
- โ Add method Selenide.updateHash() (thanks to @fabienbancharel for pull request #254)
- โฌ๏ธ upgrade to sizzle 2.2.1
- โฌ๏ธ upgrade to guava 19.0
- โฌ๏ธ upgrade to testng 6.9.10
๐จ Big refactoring:
- ๐จ Refactor AbstractSelenideElement. Instead of single huge class, it's split to many small classes ("commands").
- ๐ User can override any of these commands
- ๐ User can add any custom commands to the standard Selenide methods
Code cleanup:
- โ Remove deprecated conditions:
notPresent
-> Use method$.shouldNot(exist)
or$.shouldNotBe(present)
.hasOptions
-> Not needed anymore. Use methods$.selectOption()
or$.selectOptionByValue()
.options
-> Not needed anymore. Use methods$.selectOption()
or$.selectOptionByValue()
.hasNotClass
-> Use method$.shouldNotHave(cssClass("abc"))
- โ Remove deprecated class JQuery
- โ Remove deprecated class PrettyReportCreator (use class
TextReport
for JUnit or TestNG) - โ Remove deprecated methods
Selenide.switchToWindow(title)
-> use methodswitchTo().window(title)
Selenide.switchToWindow(index)
-> use methodswitchTo().window(index)
- โ Remove deprecated methods
WebDriverRunner.ie()
-> use methodWebDriverRunner.isIE()
WebDriverRunner.htmlUnit()
-> use methodWebDriverRunner.isHtmlUnit()
WebDriverRunner.phantomjs()
-> use methodWebDriverRunner.isPhantomjs()
WebDriverRunner.takeScreenShot()
-> use methodScreenshots.takeScreenShot()
- โ Remove deprecated methods
$.should*(String message, Condition condition)
-> use method$.should*(condition.because(message))
- โ Remove class com.codeborne.selenide.impl.Quotes because it was migrated to Selenium Webdriver (org.openqa.selenium.support.ui.Quotes)