![]() | BaseElement Class |
Namespace: TescoSW.MW.UITests.Common.PageModel.Components
public abstract class BaseElement : IBaseElement, IWebElement, ISearchContext, IWrapsElement, IContextAware
The BaseElement type exposes the following members.
Name | Description | |
---|---|---|
![]() | BaseElement |
Vytvoří nový element
|
Name | Description | |
---|---|---|
![]() | Displayed |
Gets a value indicating whether or not this element is displayed.
|
![]() | Enabled |
Gets a value indicating whether or not this element is enabled.
|
![]() | GlobalContext | |
![]() | Location |
Gets a Point object containing the coordinates of the upper-left corner
of this element relative to the upper-left corner of the page.
|
![]() | ScriptExecutor | |
![]() | Selected |
Gets a value indicating whether or not this element is selected.
|
![]() | Size |
Gets a Size object containing the height and width of this element.
|
![]() | TagName |
Gets the tag name of this element.
|
![]() | Text |
Gets the innerText of this element, without any leading or trailing whitespace,
and with other whitespace collapsed.
|
![]() | WrappedElement |
Gets the IWebElement wrapped by this object.
|
Name | Description | |
---|---|---|
![]() | Clear |
Clears the content of this element.
|
![]() | Click |
Clicks this element.
|
![]() | ClickDouble |
Provede dvojklik na element a počká na zmizení loaderu
|
![]() | FindElement |
Finds the first IWebElement using the given method.
|
![]() | FindElements |
Finds all IWebElements within the current context
using the given mechanism.
|
![]() | GetAttribute |
Gets the value of the specified attribute for this element.
|
![]() | GetCssValue |
Gets the value of a CSS property of this element.
|
![]() | GetProperty |
Gets the value of a JavaScript property of this element.
|
![]() | SendKeys |
Simulates typing text into the element.
|
![]() | Submit |
Submits this element to the web server.
|
![]() | VerifyAttrName |
Ověří zobrazovaný "data-attrname" aplikační atribut
|
![]() | VerifyAttrObjectName |
Ověří zobrazovaný "data-objectname" aplikační atribut
|
![]() | VerifyClassNotPresent |
Ověří existenci třídy u elementu
|
![]() | VerifyClassPresent |
Ověří existenci třídy u elementu
|
![]() | VerifyElementPresent |
Ověří existenci elementu
|
![]() | VerifyTextContains |
Ověří jestli properta Text obsahuje hledaný řetězec
|
![]() | VerifyTitle |
Ověří hodnotu atributu title
|
![]() | VerifyVisible |
Ověří viditelnost elementu
|
Name | Description | |
---|---|---|
![]() ![]() | AttrNameAttribute |
Aplikační atribut "data-attrname" detailové komponenty
|
![]() ![]() | AttrObjectName |
Aplikační atribut "data-objectname" detailové komponenty
|
![]() ![]() | DisabledClass |
Třída "Disabled" u neaktivní komponenty
|
![]() ![]() | DisabledClassLowerCase |
Třída "disabled" u neaktivní komponenty
|
![]() ![]() | EnabledClass |
Třída "Enabled" u aktivní komponenty
|
![]() ![]() | FormNameAttribute |
Aplikační atribut data-formname u komponenty
|
![]() ![]() | ReadonlyClassLowerCase |
Třída "readonly" u neaktivní komponenty
|
![]() ![]() | TableHeadOrdered |
Atribut popisku elementu
|
![]() ![]() | TableHeadOrderedDesc |
Atribut popisku elementu
|
![]() ![]() | TitleAttribute |
Atribut popisku elementu
|
![]() ![]() | ValueAttribute |
Atribut hodnoty elementu
|
Name | Description | |
---|---|---|
![]() | FindElementOrNull |
Najde element a pokud není nalezen, tak vrací místo výjimky null
(Defined by ExtensionMethods.) |
![]() | GetParent |
Metoda vrací rodiče "IWebElement" objektu
(Defined by ExtensionMethods.) |
![]() | HasAttribute |
Zkontroluje, zda element obsahuje daný atribut
(Defined by ExtensionMethods.) |
![]() | HasClass |
Metoda ověřuje, zda "IWebElement" objekt obsahuje třídu s daným názvem
- Příklad použití
var randomField = By.CssSelector("...");
IWebElement randomIWebElement = driver.FindElement(randomField);
bool result = randomIWebElement.HasClass("Disabled");
(Defined by ExtensionMethods.) |
![]() | TryFindElementOrNull(By, Int32) | Overloaded.
Pokusí se najít element a pokud není nalezen, tak vrací místo výjimky null
(Defined by ExtensionMethods.) |
![]() | TryFindElementOrNull(By, Int32) | Overloaded.
Pokusí se najít element a pokud není nalezen, tak vrací místo výjimky null
(Defined by ExtensionMethods.) |
![]() | WaitForAttributeValue |
Metoda ověřuje, zda má vlastnost objektu "IWebElement" požadovanou hodnotu
- Příklad použití
var randomFieldInput = By.CssSelector("...");
IWebElement randomIWebElement = driver.FindElement(randomFieldInput);
randomIWebElement.WaitForAttributeValue("value", "testValue");
(Defined by ExtensionMethods.) |
![]() | WaitForElementAttributeNotPresent |
Ověřuje, zda element obsahuje zadaný atribut
(Defined by ExtensionMethods.) |
![]() | WaitForElementAttributePresent |
Ověřuje, zda element obsahuje zadaný atribut
(Defined by ExtensionMethods.) |
![]() | WaitForElementClassNotPresent |
Ověřuje, zda element neobsahuje danou třídu
(Defined by ExtensionMethods.) |
![]() | WaitForElementClassPresent |
Metoda ověřuje, zda "IWebElement" objekt obsahuje danou třídu
(Defined by ExtensionMethods.) |
![]() | WaitForElementNotValue |
Ověřuje, zda má element danou hodnotu
(Defined by ExtensionMethods.) |
![]() | WaitForElementNotVisible |
Ověřuje, zda není element viditelný
(Defined by ExtensionMethods.) |
![]() | WaitForElementValue |
Ověřuje, zda má element danou hodnotu
(Defined by ExtensionMethods.) |
![]() | WaitForElementVisible |
Metoda ověřuje, zda je "IWebElement" objekt viditelný
(Defined by ExtensionMethods.) |
![]() | WaitForInputValue |
Ověřuje, zda má element danou hodnotu elementu (Defined by ExtensionMethods.) |