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

 NameDescription
MethodByEach(OpenQA.Selenium.By[]) A constructor for the ByEach locator.

Back to top

Method summary

 NameDescription
MethodAttribute(System.String, System.String)Returns a locator that locates elements according to a single attribute. (Inherited from LeanFT.Selenium.By)
MethodAttribute(System.String, System.Text.RegularExpressions.Regex)Returns a locator that locates elements according to a single attribute, described using a regular expression.
MethodAttributes(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)
MethodClassName(System.Text.RegularExpressions.Regex)Returns a locator that locates elements by the provided regular expression className parameter. (Inherited from LeanFT.Selenium.By)
MethodId(System.Text.RegularExpressions.Regex)Returns a locator that locates elements by the provided regular expression ID parameter. (Inherited from LeanFT.Selenium.By)
MethodLinkText(System.Text.RegularExpressions.Regex) Returns a locator that locates elements by the provided regular expression linkText parameter. (Inherited from LeanFT.Selenium.By)
MethodName(System.Text.RegularExpressions.Regex)Returns a locator that locates elements by the provided regular expression name parameter. (Inherited from LeanFT.Selenium.By)
MethodRole(System.String)Returns a locator that locates elements by the provided role parameter. (Inherited from LeanFT.Selenium.By)
MethodRole(System.Text.RegularExpressions.Regex)Returns a locator that locates elements by the provided regular expression role parameter. (Inherited from LeanFT.Selenium.By)
MethodStyle(System.String, System.String)Returns a locator that locates elements according to a single style. (Inherited from LeanFT.Selenium.By)
MethodStyle(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)
MethodStyles(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)
MethodTagName(System.Text.RegularExpressions.Regex)Returns a locator that locates elements by the provided regular expression tagName parameter. (Inherited from LeanFT.Selenium.By)
MethodType(System.String)Returns a locator that locates elements by the provided type parameter. (Inherited from LeanFT.Selenium.By)
MethodType(System.Text.RegularExpressions.Regex) Returns a locator that locates elements by the provided regular expression type. (Inherited from LeanFT.Selenium.By)
MethodVisible(System.Boolean)Returns a locator that locates elements that are either visible or not, depending on the parameter passed. (Inherited from LeanFT.Selenium.By)
MethodVisibleText(System.String)Returns a locator that locates elements by the provided visibleText parameter. (Inherited from LeanFT.Selenium.By)
MethodVisibleText(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: