C# Класс SePSXUnitTests.FakeWebElement

Description of WebElementFromSelenium.
Наследование: IWebElement, ISearchContext, IFindsByLinkText, IFindsById, IFindsByName, IFindsByTagName, IFindsByClassName, IFindsByXPath, IFindsByPartialLinkText, IFindsByCssSelector, IWrapsDriver, ILocatable
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
Init void
SetElementsCollection void

Открытые методы

Метод Описание
Clear ( ) : void
Click ( ) : void
FakeWebElement ( ) : OpenQA.Selenium
FakeWebElement ( IWebElement realWebElement ) : OpenQA.Selenium

Like decorator

FakeWebElement ( string tagName, string text ) : OpenQA.Selenium
FakeWebElement ( string tagName, string text, Point location, Size size ) : OpenQA.Selenium
FakeWebElement ( string tagName, string text, bool displayed, bool enabled, bool selected ) : OpenQA.Selenium
FindElement ( By by ) : IWebElement
FindElementByClassName ( string className ) : IWebElement
FindElementByCssSelector ( string cssSelector ) : IWebElement
FindElementById ( string id ) : IWebElement
FindElementByLinkText ( string linkText ) : IWebElement
FindElementByName ( string name ) : IWebElement
FindElementByPartialLinkText ( string partialLinkText ) : IWebElement
FindElementByTagName ( string tagName ) : IWebElement
FindElementByXPath ( string xpath ) : IWebElement
FindElements ( By by ) : ReadOnlyCollection
FindElementsByClassName ( string className ) : ReadOnlyCollection
FindElementsByCssSelector ( string cssSelector ) : ReadOnlyCollection
FindElementsById ( string id ) : ReadOnlyCollection
FindElementsByLinkText ( string linkText ) : ReadOnlyCollection
FindElementsByName ( string name ) : ReadOnlyCollection
FindElementsByPartialLinkText ( string partialLinkText ) : ReadOnlyCollection
FindElementsByTagName ( string tagName ) : ReadOnlyCollection
FindElementsByXPath ( string xpath ) : ReadOnlyCollection
GetAttribute ( string attributeName ) : string
GetCssValue ( string propertyName ) : string
SendKeys ( string text ) : void
Submit ( ) : void

Приватные методы

Метод Описание
Init ( ) : void
SetElementsCollection ( List listOfElements ) : void

Описание методов

Clear() публичный Метод

public Clear ( ) : void
Результат void

Click() публичный Метод

public Click ( ) : void
Результат void

FakeWebElement() публичный Метод

public FakeWebElement ( ) : OpenQA.Selenium
Результат OpenQA.Selenium

FakeWebElement() публичный Метод

Like decorator
public FakeWebElement ( IWebElement realWebElement ) : OpenQA.Selenium
realWebElement IWebElement
Результат OpenQA.Selenium

FakeWebElement() публичный Метод

public FakeWebElement ( string tagName, string text ) : OpenQA.Selenium
tagName string
text string
Результат OpenQA.Selenium

FakeWebElement() публичный Метод

public FakeWebElement ( string tagName, string text, Point location, Size size ) : OpenQA.Selenium
tagName string
text string
location System.Drawing.Point
size System.Drawing.Size
Результат OpenQA.Selenium

FakeWebElement() публичный Метод

public FakeWebElement ( string tagName, string text, bool displayed, bool enabled, bool selected ) : OpenQA.Selenium
tagName string
text string
displayed bool
enabled bool
selected bool
Результат OpenQA.Selenium

FindElement() публичный Метод

public FindElement ( By by ) : IWebElement
by OpenQA.Selenium.By
Результат IWebElement

FindElementByClassName() публичный Метод

public FindElementByClassName ( string className ) : IWebElement
className string
Результат IWebElement

FindElementByCssSelector() публичный Метод

public FindElementByCssSelector ( string cssSelector ) : IWebElement
cssSelector string
Результат IWebElement

FindElementById() публичный Метод

public FindElementById ( string id ) : IWebElement
id string
Результат IWebElement

FindElementByLinkText() публичный Метод

public FindElementByLinkText ( string linkText ) : IWebElement
linkText string
Результат IWebElement

FindElementByName() публичный Метод

public FindElementByName ( string name ) : IWebElement
name string
Результат IWebElement

FindElementByPartialLinkText() публичный Метод

public FindElementByPartialLinkText ( string partialLinkText ) : IWebElement
partialLinkText string
Результат IWebElement

FindElementByTagName() публичный Метод

public FindElementByTagName ( string tagName ) : IWebElement
tagName string
Результат IWebElement

FindElementByXPath() публичный Метод

public FindElementByXPath ( string xpath ) : IWebElement
xpath string
Результат IWebElement

FindElements() публичный Метод

public FindElements ( By by ) : ReadOnlyCollection
by By
Результат ReadOnlyCollection

FindElementsByClassName() публичный Метод

public FindElementsByClassName ( string className ) : ReadOnlyCollection
className string
Результат ReadOnlyCollection

FindElementsByCssSelector() публичный Метод

public FindElementsByCssSelector ( string cssSelector ) : ReadOnlyCollection
cssSelector string
Результат ReadOnlyCollection

FindElementsById() публичный Метод

public FindElementsById ( string id ) : ReadOnlyCollection
id string
Результат ReadOnlyCollection

FindElementsByLinkText() публичный Метод

public FindElementsByLinkText ( string linkText ) : ReadOnlyCollection
linkText string
Результат ReadOnlyCollection

FindElementsByName() публичный Метод

public FindElementsByName ( string name ) : ReadOnlyCollection
name string
Результат ReadOnlyCollection

FindElementsByPartialLinkText() публичный Метод

public FindElementsByPartialLinkText ( string partialLinkText ) : ReadOnlyCollection
partialLinkText string
Результат ReadOnlyCollection

FindElementsByTagName() публичный Метод

public FindElementsByTagName ( string tagName ) : ReadOnlyCollection
tagName string
Результат ReadOnlyCollection

FindElementsByXPath() публичный Метод

public FindElementsByXPath ( string xpath ) : ReadOnlyCollection
xpath string
Результат ReadOnlyCollection

GetAttribute() публичный Метод

public GetAttribute ( string attributeName ) : string
attributeName string
Результат string

GetCssValue() публичный Метод

public GetCssValue ( string propertyName ) : string
propertyName string
Результат string

SendKeys() публичный Метод

public SendKeys ( string text ) : void
text string
Результат void

Submit() публичный Метод

public Submit ( ) : void
Результат void