We have release a small update Selenide 5.18.1.
Let’s look at the changes:
… similar to
Selenide.getLocalStorage() added in 5.15.0.
They both have the same set of methods:
Sometimes it’s useful to set some flag to
localStorageto emulate some user action or toggle some features or settings.
Fixed error message for
As you know, Selenide provides powerful API for filtering and validating collections.
User Pavel Fokin found that the error message can look misleading when
the collection is filtered with
and condition (a combination of other conditions):
$$(".sofa").filterBy(and("shining", text("Jorshik"), text("Zoloto"))).shouldHave(size(2));
The output was a bit misleading (because it showed only the last checked condition):
... collection: .sofa.filter(text Jorshik)
Now the output contains all conditions:
... collection: .sofa.filter(shining: text 'Jorshik' and text 'Zoloto')
Pass “noproxy” option from user-provided proxy to Selenide proxy
As you know, Selenide can run its own embedded proxy server (used to download files, intercept requests etc.) It’s also possible to provide Selenide your own proxy. Then Selenide uses both proxies, one through the other.
Every proxy can have a setting “noproxy” which often has value “localhost”. It mean that all requests except “http://localhost:*“ should be proxied. And this setting was lost when running Selenide with two proxies, Thus Selenide could not run requests to localhost.
Now Selenide passes “noproxy” setting from your proxy to its own proxy.
Localhost is a delicate thing!
Upgraded to Netty 4.1.59.Final and LittleProxy 2.0.2
Github is stronger than bugs!