We released Selenide 4.11.3. Let’s see what updates it contains:
You can now get access to proxy server
As you know, Selenide starts a built-in proxy server (BrowserMobProxy). But until now, you could not use it because it was private. Selenide used it only for downloading files.
Now we added a public method which allows you to get the
BrowserMobProxy instance and use as you wish:
BrowserMobProxy bmp = WebDriverRunner.getSelenideProxy().getProxy();
Please tell us in comments how you are going to use it!
P.S. Selenide still starts proxy server only when
Probably we will break this dependency in next version.
We added condition
Now you can check CSS properties of elements:
Attention! Use this check with caution. Such checks can make your tests too fragile. You don’t want to have tests that fail often just because of minor design tunings, right?
And remember that Selenium method
getCssValue can return different results for different browsers.
For example, you cannot just write a universal check for all browsers:
- For Chrome, it is
rgb(0, 0, 0)
- For Firefox, it is
rgba(0, 0, 0, 0)
We removed wrong dependency
As you probably remember, in previous Selenide version there was introduces an extra dependency WebDriverManager -> logback, and we recommended to exclude it in your build script.
Now you can remove these lines:
exclude group: "ch.qos.logback", module: "logback-classic"
Removed duplicate screenshots
Starting from version 4.11.0 Selenide created duplicate screenshots in some cases. Now we fixed it.
Implemented using of
browserBinary setting in case of remote browser
Starting from version 4.9, Selenide has a setting for browser binary path -
But it was used only for local browser.
Now Selenide also uses this setting for remote browser.
- Another video tutorial about Selenide
- See you in Krakow, May, 9-11 at GeeCon conference - I will present Selenide there.