Selenious 1.0.0-alpha3

This is a prerelease version of Selenious.
There is a newer version of this package available.
See the version list below for details.
dotnet add package Selenious --version 1.0.0-alpha3
NuGet\Install-Package Selenious -Version 1.0.0-alpha3
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Selenious" Version="1.0.0-alpha3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Selenious --version 1.0.0-alpha3
#r "nuget: Selenious, 1.0.0-alpha3"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Selenious as a Cake Addin
#addin nuget:?package=Selenious&version=1.0.0-alpha3&prerelease

// Install Selenious as a Cake Tool
#tool nuget:?package=Selenious&version=1.0.0-alpha3&prerelease

What is Selenious?

Selenious is a port of popular in Java-world test automation framework called Selenide. It defines API for you to write tests in human-readable language. It is base on Selenium WebDriver.

Here is example:

using static Selenious.Condition; using static Selenious.Selenious;

    [Test]
    public void Test()
    {
        Open("/login");
        Element("#username").Val("AndrewSmith")
        Element("#password").Val("SuperSecretPassword!");
        Element("#submit").Click();
        Element("#username").ShouldHave(Text("You logged in as Andrew"));
    }

That's it, you could write you tests just like that. Selenious will take care for opening and closing browser.

To configure Selenious you could use Configuration class. It's quite simple. For example to set browser size you need to add command to you Set Up:

        Configuration.BrowserSize = "1280x768";

To specify BaseUrl call:

        Configuration.BaseUrl = "yourUrl";

after that you could call Open("/path/to/page") in you tests;

You could use reach assertion API like:

There are plenty of assertions that you could do on element by passing them to commands Should(), ShouldHave(), ShouldBe(), ShouldNot():

And,
Attr,
AttrWithValue,
CaseSensitiveText,
Checked,
CssClass,
CssValue,
Disabled,
Enabled,
ExactText,
ExactTextCaseSensitive,
Exist,
Focused,
Hidden,
MatchText,
Not,
Or,
Selected,
SelectedText,
Text,
Value,
Visible.

There also plenty of commands that you could execute on ISeleniousElement. Right now available:

Append,
Click,
ContextClick,
DoubleClick,
DragAdnDropTo,
Exists,
Find,
FindAll,
GetDataAttribute,
GetName,
GetValue,
IsDisplayed,
PressTab,
SelectOptionByValue,
SelectRadio,
SetValue,
Many shoulds,
ToString,
Val,
WaitUntil

Difference between Should and WaitUntil is that second command will override default Timeout(which is 4 seconds by default, changeable through Configuration)

TODO: add more examples

Thanks for inspiration to

Selenide

Product 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 netcoreapp3.0 is compatible.  netcoreapp3.1 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Selenious:

Package Downloads
AllureSelenious

This library adding Selenious steps to Allure Report

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.14 164 9/22/2023
1.0.13 526 5/18/2022
1.0.12 567 4/7/2022
1.0.11 424 9/1/2021
1.0.10 471 10/12/2020
1.0.9 582 9/11/2020
1.0.8 496 6/11/2020
1.0.7 667 2/25/2020
1.0.6 497 2/17/2020
1.0.5 444 2/14/2020
1.0.4 464 2/13/2020
1.0.3 467 2/13/2020
1.0.2 429 2/13/2020
1.0.1 502 2/12/2020
1.0.0 599 2/9/2020
1.0.0-alpha7 358 11/4/2019
1.0.0-alpha6 461 10/10/2019
1.0.0-alpha5 335 10/3/2019
1.0.0-alpha4 319 9/24/2019
1.0.0-alpha3 336 9/17/2019
1.0.0-alpha2 358 9/11/2019
1.0.0-alpha1 323 9/11/2019
1.0.0-alpha 357 9/10/2019

Added browser screen resizer