Good evening!
Now we are publishing press release of Selenide 5.2.0 which was released 19.02.2019.
Let’s quickly read what was changed there, and move on to the next versions.
Added aliases for Kotlin
Since symbols $
and $$
cannot be used as method name in Kotlin, using Selenide in Kotlin initially was not as pleasant as in Java.
Here you can see some examples of how it could be solved.
After long discussions and researches, we decided to add simple aliases for Selenide methods $
and $$
: element
and elements
.
It’s a little bit longer than $
, but the result is human-readable:
element(".header").shouldNot(exist)
elements(".header").shouldHave(size(3))
See issue 865.
Thanks to Jacek Kromski for PR 870!
Added check for selected text
Now you can check that an element has expected selected text:
$("textarea").shouldHave(selectedText("oo ba"));
$("textarea").shouldHave(text("foo bar"));
See issue 766.
Improved support for chromeoptions.args
and chromeoptions.prefs
system properties
Actually, I am not sure if it’s a useful feature. Probably it’s easier to just implement WebDriverProvider
.
But still, we improved it.
Thanks to Alexei Vinogradov for PR 883.
Remove an old hack for Chrome maximization
Older versions of Chrome driver could not maximize the browser window. That’s why Selenide had a special hack to maximize Chrome. Now it’s not needed anymore, and we removed the hack.
News
- Comparative analysis: Selenide vs Geb
- Neodymium: a new framework based on Selenide from Xceptance (Germany)
Post 1 | Post 2 - Akita: testing framework based on Selenide from Alfabank - one of biggest banks in Russia
- Post about layout testing with Selenide from Alfabank
- Post about BDD with Selenide: BDD: Writing an Automated Test Suite isn’t Rocket Science
- And one more post about BDD with Selenide+Cucumber
selenide.org
19.02.19