FunkyBDD.Selenium.Webdriver.Extensions
1.2.7
dotnet add package FunkyBDD.Selenium.Webdriver.Extensions --version 1.2.7
NuGet\Install-Package FunkyBDD.Selenium.Webdriver.Extensions -Version 1.2.7
<PackageReference Include="FunkyBDD.Selenium.Webdriver.Extensions" Version="1.2.7" />
paket add FunkyBDD.Selenium.Webdriver.Extensions --version 1.2.7
#r "nuget: FunkyBDD.Selenium.Webdriver.Extensions, 1.2.7"
// Install FunkyBDD.Selenium.Webdriver.Extensions as a Cake Addin
#addin nuget:?package=FunkyBDD.Selenium.Webdriver.Extensions&version=1.2.7
// Install FunkyBDD.Selenium.Webdriver.Extensions as a Cake Tool
#tool nuget:?package=FunkyBDD.Selenium.Webdriver.Extensions&version=1.2.7
Extension for the Selenium IWebDriver
It's also available as NuGet Package
PM> Install-Package FunkyBDD.Selenium.Webdriver.Extensions
This extension equips the Selenium Webdriver with additional functions, which are needed again and again but are not (yet) implemented.
FindElementFirstOrDefault(By by, [int timeout=1])
Advanced FindElement method that returns Null if the element is not found or the 1st element that was found. Optionally the timeout can be set in seconds. Default is 1 second.
ImagesEquals(Bitmap bmp1, Bitmap bmp2)
Compares 2 images and returns true if the images are identical else false. Also it's possible to create and safe a Heathmap of the differences.
GetElementScreenshot(IWebElement element)
Returns a partial screenshot of the passed element as bitmap. Usefull for visual tests against a StyleGuide.
NavigateToPath(string path, [int timeout=5])
Navigates to the relative path based on the current URL.
LocalStorage Helpers
Some helper methods to deal with the browser local storage to set values or kill old values in IE.
LocalStorageSetItem(string key, string value)
LocalStorageGetItem(string key)
LocalStorageLength()
LocalStorageClear()
GetElementSafe(By by, [int Timeout=5])
Returns the searched element if it exists, is visible and clickable. Otherwise returns Null.
SetMobileSize(int width = 750, int height = 1024)
Set the browser size to a mobile size. Please don't use on tests running on Browserstack!
MakeScreenshot(string filename)
Make a screenshot and save it into the folder "SeleniumResults".
ExecuteScript(string script)
Shorthand to execute JavaScript Code
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- DotNetSeleniumExtras.WaitHelpers (>= 3.11.0)
- Selenium.Support (>= 3.141.0)
- System.Drawing.Common (>= 4.5.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|
FindElementFirstOrDefault() extended, because the Selenium team has still not managed that the ImplicitWait NOT override the WebDriverWait!