Released Selenide 5.2.0

Released Selenide 5.2.0

Small step towards Kotlin

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.

Thanks to symonk for PR 876!

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.

See issue 838 and PR 901.


Andrei Solntsev