Socket
Book a DemoInstallSign in
Socket

LeanFT.Selenium

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

LeanFT.Selenium

LeanFT for Selenium DotNet (C#) SDK that extends the WebDriver API with additional locators and utilities.

Source
nugetNuGet
Version
1.0.2
Version published
Maintainers
1
Created
Source

leanft-selenium-dotnet-sdk

The LeanFT for Selenium DotNet (C#) SDK that extends the WebDriver API with additional locators and utilities. By using this SDK you can create more robust or generic identifications for your objects, and use built-in utilities rather than writing them yourself from scratch.

API:

New Locators:

  • By.VisibleText

    Finds elements based on their visible text.

  • By.Visible

    Finds elements based on their visibility.

  • By.Role

    Finds elements based on their role.

  • By.Type

    Finds elements based on their type.

  • By.Attributes

    Finds elements based on their attributes (one or more). Attribute values can be defined using regular expressions.

  • By.Attribute

    Finds elements based on an attribute. The attribute value can be defined using regular expressions.

  • By.Styles

    Finds elements based on their computed style (one or more). Computed style values can be defined using regular expressions.

  • By.Style

    Finds elements based on a computed style. The computed style value can be defined using regular expressions.

  • ByAny

    Finds elements according to any of the given locators (attributes, tags, styles etc.).

  • ByEach

    Finds elements based on the combination of locators (attributes, tags, styles etc.).

Regular Expression Support:

All the locators which accept a string as a value of the element's property were extended to support regular expressions, including the following Selenium native locators:

  • By.Id
  • By.ClassName
  • By.LinkText
  • By.Name
  • By.TagName

Utilities:

  • Utils.GetSnapshot

    Returns a snapshot (image) of the selenium element as a Base64 string.

  • Utils.Highlight

    Highlights the selenium element in the browser.

  • Utils.ScrollIntoView

    Scrolls the page to make the web element visible.

Keywords

LeanFT

FAQs

Package last updated on 29 Feb 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts