NSelene 1.0.0-alpha05
See the version list below for details.
dotnet add package NSelene --version 1.0.0-alpha05
NuGet\Install-Package NSelene -Version 1.0.0-alpha05
<PackageReference Include="NSelene" Version="1.0.0-alpha05" />
paket add NSelene --version 1.0.0-alpha05
#r "nuget: NSelene, 1.0.0-alpha05"
// Install NSelene as a Cake Addin #addin nuget:?package=NSelene&version=1.0.0-alpha05&prerelease // Install NSelene as a Cake Tool #tool nuget:?package=NSelene&version=1.0.0-alpha05&prerelease
NSelene is a wrapper over Selenium Webdriver, built to provide user-oriented API for Web UI tests in Browser and improve tests stability by implementing smart implicit waiting for commands and assertions. It's inspired by Selenide from Java, SelenideJs from JavaScript and Selene from Python.
Main features:
- User-oriented API for Selenium Webdriver (code like speak common English)
- Dynamic/Ajax UI support (Smart implicit waiting and retry mechanism for commands and assertions)
- PageObjects support (all elements are lazy-evaluated objects)
Tests with NSelene can be built either in a simple straightforward "selenide' style or with PageObjects composed from Widgets i.e. reusable element components.
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
- Selenium.WebDriver (>= 3.141.0)
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 |
---|---|---|
1.0.0-alpha14 | 209 | 8/28/2024 |
1.0.0-alpha13 | 226 | 2/13/2024 |
1.0.0-alpha12 | 118 | 2/9/2024 |
1.0.0-alpha11 | 1,526 | 5/16/2023 |
1.0.0-alpha10 | 16,870 | 5/27/2022 |
1.0.0-alpha09 | 6,664 | 5/18/2021 |
1.0.0-alpha08 | 309 | 5/18/2021 |
1.0.0-alpha07 | 263 | 5/13/2021 |
1.0.0-alpha06 | 235 | 5/12/2021 |
1.0.0-alpha05 | 266 | 4/28/2021 |
1.0.0-alpha03 | 4,674 | 6/3/2020 |
1.0.0-alpha02 | 1,523 | 5/26/2020 |
1.0.0-alpha01 | 357 | 5/21/2020 |
0.0.0.7 | 36,234 | 5/28/2018 |
0.0.0.6 | 2,404 | 8/1/2016 |
0.0.0.5 | 1,130 | 5/29/2016 |
0.0.0.4 | 1,046 | 5/12/2016 |
0.0.0.3 | 1,072 | 5/11/2016 |
0.0.0.2 | 1,033 | 3/20/2016 |
0.0.0.1 | 1,117 | 12/30/2015 |
- added `Be.Not.*` and `Have.No.*` as entry points to "negated conditions"
- `.ShouldNot` is obsolete now, use `.Should(Be.Not.*)` or `.Should(Have.No.*)` instead
- added `Condition#Not` property, `Condition#Or(condition)`, `Condition#And(condition)`
- added SeleneElement extensions
- `.JsScrollIntoView()`
- `.JsClick(centerXOffset=0, centerYOffset=0)`
- proper tests coverage is yet needed
- the same can be achieved through (can be handy when storing element in var)
`element.With(clickByJs: true).Click()`
- `.JsSetValue(value)`
- the same can be achieved through
`element.With(setValueByJs: true).SetValue(value)`
- `.JsType(value)`
- the same can be achieved through
`element.With(typeByJs: true).Type(value)`
- made Configuration.* ThreadLocal
- added SeleneElement methods:
- `WaitUntil(Condition)` – like Should, but returns false on failure
- `Matching(Condition)` - the predicate, like WaitUntil but without waiting
- `With([driver], [timeout], [pollDuringWaits], [setValueByJs], [typeByJs], [clickByJs])` - to override corresponding selene setting from Configuration
- usage: `element.With(timeout: 2.0)`
- `_With_(_SeleneSettings_)` option to fully disconnect element config from shared Configuration
- underscores mean that method signature might change...
- usage: `element._With_(Configuration.New(timeout: 2.0))`
- added SeleneCollection methods:
- `WaitUntil(Condition)` – like Should, but returns false on failure
- `Matching(Condition)` - the predicate, like WaitUntil but without waiting
- `With([driver], [timeout], [pollDuringWaits], [setValueByJs], [typeByJs], [clickByJs])` - to override corresponding selene setting from Configuration
- `_With_(_SeleneSettings_)` option to fully disconnect element config from shared Configuration
- underscores mean that method signature might change...
- usage: `elements._With_(Configuration.New(timeout: 2.0))`
- added SeleneDriver methods:
- `WaitUntil(Condition)` – like Should, but returns false on failure
- `Matching(Condition)` - the predicate, like WaitUntil but without waiting
- `With([driver], [timeout], [pollDuringWaits], [setValueByJs], [typeByJs], [clickByJs])` - to override corresponding selene setting from Configuration
- `_With_(_SeleneSettings_)` option to fully disconnect element config from shared Configuration
- underscores mean that method signature might change...
- usage: `elements._With_(Configuration.New(timeout: 2.0))`
- tuned selene elements representation in error messages
- now code like `SS(".parent").FilterBy(Be.Visible)[0].SS(".child").FindBy(Have.CssClass("special")).S("./following-sibling::*")`
- renders to: `Browser.All(.parent).By(Visible)[0].All(.child).FirstBy(has CSS class 'special').Element(./following-sibling::*)`
- improved waiting (waits not just for visibility but till "being passed") at SeleneElement's:
- (... wait till visible and not overlapped)
- Click()
- Hover()
- DoubleClick()
- Submit()
- Clear()
- SetValue(keys)
- Type(keys)
- PressEnter()
- PressEscape()
- PressTab()
- (... wait till visible for all but `input[type=file]`)
- SendKeys(keys)
- upgraded waiting to new engine in asserts (.Should(condition)) of
- SeleneElement
- SeleneCollection
- *Deprecated (Marked as Obsolete)*
- `Configuration.WebDriver` (use `Configuration.Driver` instead)
- it also becomes a recommended wa
- to set driver: `Configuration.Driver = myDriverInstance`
- over `Selene.SetWebDriver(myDriverInstance)`
- that might be deprecated in future
- also take into account that in frameworks like NUnit3,
when you tear down driver in OneTimeTearDown (that will be executed after all test methods)
ensure you do this by calling `Quit` on your own instance like `myDriverInstance.Quit()`
DON'T do it like `Configuration.Driver.Quit()` or `Selene.GetWebDriver().Quit()`
cause this will lead in memory leaked driver, this is NUnit thing, not NSelene:)
(you still can do the latter in TearDown method that will be executed after each test method)
- **potential breaking changes**:
- Switched to System.TimeoutException in some waits (instead of WebDriverTimeoutException)