![]() | StableWebElement Class |
Namespace: TescoSW.MW.UITests.Common.PageModel
public class StableWebElement : IWebElement, ISearchContext, ILocatable, ITakesScreenshot, IWrapsElement, IWrapsDriver
The StableWebElement type exposes the following members.
Name | Description | |
---|---|---|
![]() | StableWebElement(FuncIWebElement) |
Vytvoří stabilní odkaz na html element
|
![]() | StableWebElement(ISearchContext, By) |
Vytvoří stabilní odkaz na html element
|
Name | Description | |
---|---|---|
![]() | Coordinates |
Gets the coordinates identifying the location of this element using
various frames of reference.
|
![]() | Displayed |
Gets a value indicating whether or not this element is displayed.
|
![]() | Enabled |
Gets a value indicating whether or not this element is enabled.
|
![]() | 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.
|
![]() | LocationOnScreenOnceScrolledIntoView |
Gets the location of an element on the screen, scrolling it into view
if it is not currently on the screen.
|
![]() | 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.
|
![]() | WrappedDriver |
Gets the IWebDriver used to find this element.
|
![]() | WrappedElement |
Gets the IWebElement wrapped by this object.
|
Name | Description | |
---|---|---|
![]() | Clear |
Clears the content of this element.
|
![]() | Click |
Clicks this element.
|
![]() | 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.
|
![]() | GetDescription | |
![]() | GetProperty |
Gets the value of a JavaScript property of this element.
|
![]() | GetScreenshot |
Gets a Screenshot object representing the image of the page on the screen.
|
![]() | IsStale | |
![]() | RegenerateElement | |
![]() | SendKeys |
Simulates typing text into the element.
|
![]() | Submit |
Submits this element to the web server.
|
Name | Description | |
---|---|---|
![]() | Delete |
Vymaže obsah elementu přes přímou interakci s textovým polem
(Defined by ExtensionMethods.) |
![]() | DeleteAndSendKeys |
Vymaže obsah elementu přes přímou interakci s textovým polem a vloží do něj novou hodnotu
(Defined by ExtensionMethods.) |
![]() | DeleteAndSendLongKeys |
Vymaže obsah elementu přes přímou interakci s textovým polem a vloží do něj dlouhou novou hodnotu
(Defined by ExtensionMethods.) |
![]() | FindElementOrNull |
Najde element a pokud není nalezen, tak vrací místo výjimky null
(Defined by ExtensionMethods.) |
![]() | FindStableElement |
Vytvoří stabilní odkaz na html element
(Defined by ExtensionMethods.) |
![]() | GetParent |
Metoda vrací rodiče "IWebElement" objektu
(Defined by ExtensionMethods.) |
![]() | HasAttribute |
Zkontroluje, zda element obsahuje daný atribut
(Defined by ExtensionMethods.) |
![]() | HasClassOrClassModifier |
Metoda ověřuje, zda "IWebElement" objekt obsahuje třídu nebo modifikátor třídy s daným názvem
- Příklad použití
var randomField = By.CssSelector("...");
IWebElement randomIWebElement = driver.FindElement(randomField);
bool result = randomIWebElement.HasClassOrClassModifier("Disabled");
(Defined by ExtensionMethods.) |
![]() | SendKeysToDynamic |
Pošle vstup do elementu (podobně jako IWebElement.SendKeys) pouze počítá s tím, že se element může v průběhu psaní překreslit (výkonově náročnější).
(Defined by ExtensionMethods.) |
![]() | SetAttribute |
Nastaví elementu atribut na zadanou hodnotu pomocí javascriptu
(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, 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.) |
![]() | WaitForAttributeValueContains |
Metoda ověřuje, zda vlastnost objektu "IWebElement" obsahuje požadovanou hodnotu
- Příklad použití
var randomFieldInput = By.CssSelector("...");
IWebElement randomIWebElement = driver.FindElement(randomFieldInput);
randomIWebElement.WaitForAttributeValueContains("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.) |
![]() | WaitForElementClassOrClassModifierNotPresent |
Ověřuje, zda element neobsahuje danou třídu nebo modifikátor třídy
(Defined by ExtensionMethods.) |
![]() | WaitForElementClassOrClassModifierPresent |
Metoda ověřuje, zda "IWebElement" objekt obsahuje danou třídu nebo modifikátor třídy
(Defined by ExtensionMethods.) |
![]() | WaitForElementEndsWithValue |
Ověřuje, zda element obsahuje hodnotu, která končí daným textovým řetězcem
(Defined by ExtensionMethods.) |
![]() | WaitForElementNotValue |
Ověřuje, zda má element danou hodnotu
(Defined by ExtensionMethods.) |
![]() | WaitForElementNotVisible |
Ověřuje, zda není element viditelný
(Defined by ExtensionMethods.) |
![]() | WaitForElementStartsWithValue |
Ověřuje, zda element obsahuje hodnotu, která začíná daným textovým řetězcem
(Defined by ExtensionMethods.) |
![]() | WaitForElementValue |
Ověřuje, zda element obsahuje hodnotu, která je shodná s daným textovým řetězcem
(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.) |
![]() | WaitForTextContains |
Ověří jestlim properta Text obsahuje hledaný řetězec
(Defined by ExtensionMethods.) |