https://github.com/microfocus/leanft-selenium-dotnet-sdk
LeanFT for Selenium DotNet (C#) SDKs that extend the WebDriver API with additional locators and utilities. By using this SDKs you can create more robust or generic identifications for your objects, and use built-in utilities rather than writing them yourself from scratch.
https://github.com/microfocus/leanft-selenium-dotnet-sdk
Last synced: 7 months ago
JSON representation
LeanFT for Selenium DotNet (C#) SDKs that extend the WebDriver API with additional locators and utilities. By using this SDKs you can create more robust or generic identifications for your objects, and use built-in utilities rather than writing them yourself from scratch.
- Host: GitHub
- URL: https://github.com/microfocus/leanft-selenium-dotnet-sdk
- Owner: MicroFocus
- License: apache-2.0
- Created: 2018-03-21T13:15:07.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2024-02-28T13:50:04.000Z (about 2 years ago)
- Last Synced: 2025-08-17T02:19:11.837Z (8 months ago)
- Language: C#
- Size: 192 KB
- Stars: 3
- Watchers: 9
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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.