ByEach Class

A locator that locates elements that match all of the specified locators (attributes, tags, styles etc.).

C# Syntax

public class ByEach : LeanFT.Selenium.By

Inheritance Hierarchy

OpenQA.Selenium.By
        LeanFT.Selenium.By
                LeanFT.Selenium.ByEach

Namespace: LeanFT.Selenium

Assembly: LeanFTForSelenium

The LeanFT.Selenium.ByEach class exposes the following members: 

Constructor summary

  Name Description
Method ByEach(OpenQA.Selenium.By[]) A constructor for the ByEach locator.

Back to top

Method summary

  Name Description
Method Attribute(System.String, System.String) Returns a locator that locates elements according to a single attribute. (Inherited from LeanFT.Selenium.By)
Method Attribute(System.String, System.Text.RegularExpressions.Regex) Returns a locator that locates elements according to a single attribute, described using a regular expression.
Method Attributes(System.Collections.Generic.IDictionary{System.String, System.Object}) Returns a locator that locates elements according to one or more attributes. You can also use regular expressions. (Inherited from LeanFT.Selenium.By)
Method ClassName(System.Text.RegularExpressions.Regex) Returns a locator that locates elements by the provided regular expression className parameter. (Inherited from LeanFT.Selenium.By)
Method Id(System.Text.RegularExpressions.Regex) Returns a locator that locates elements by the provided regular expression ID parameter. (Inherited from LeanFT.Selenium.By)
Method LinkText(System.Text.RegularExpressions.Regex) Returns a locator that locates elements by the provided regular expression linkText parameter. (Inherited from LeanFT.Selenium.By)
Method Name(System.Text.RegularExpressions.Regex) Returns a locator that locates elements by the provided regular expression name parameter. (Inherited from LeanFT.Selenium.By)
Method Role(System.String) Returns a locator that locates elements by the provided role parameter. (Inherited from LeanFT.Selenium.By)
Method Role(System.Text.RegularExpressions.Regex) Returns a locator that locates elements by the provided regular expression role parameter. (Inherited from LeanFT.Selenium.By)
Method Style(System.String, System.String) Returns a locator that locates elements according to a single style. (Inherited from LeanFT.Selenium.By)
Method Style(System.String, System.Text.RegularExpressions.Regex) Returns a locator that locates elements according to a single style, described using a regular expression. (Inherited from LeanFT.Selenium.By)
Method Styles(System.Collections.Generic.IDictionary{System.String, System.Object}) Returns a locator that locates elements according to one or more styles. You can also use regular expressions. (Inherited from LeanFT.Selenium.By)
Method TagName(System.Text.RegularExpressions.Regex) Returns a locator that locates elements by the provided regular expression tagName parameter. (Inherited from LeanFT.Selenium.By)
Method Type(System.String) Returns a locator that locates elements by the provided type parameter. (Inherited from LeanFT.Selenium.By)
Method Type(System.Text.RegularExpressions.Regex) Returns a locator that locates elements by the provided regular expression type. (Inherited from LeanFT.Selenium.By)
Method Visible(System.Boolean) Returns a locator that locates elements that are either visible or not, depending on the parameter passed. (Inherited from LeanFT.Selenium.By)
Method VisibleText(System.String) Returns a locator that locates elements by the provided visibleText parameter. (Inherited from LeanFT.Selenium.By)
Method VisibleText(System.Text.RegularExpressions.Regex) Returns a locator that locates element by the provided regular expression visibleText parameter. (Inherited from LeanFT.Selenium.By)

Back to top

ByEach(OpenQA.Selenium.By[])

A constructor for the ByEach locator.

C# Syntax

public static ByEach(By[] bys)

Parameters

bys. The locators (Bys) by which the elements should be identified.

Back to top

See also: