C# Class WebDriverWrapper.SeleniumWebControls

Inheritance: IControl
显示文件 Open project: geeksree/cSharpGeeks Class Usage Examples

Public Methods

Method Description
Click ( ) : void
DesktopMouseClick ( ) : void
DesktopMouseClick ( int offsetX, int offsetY ) : void
DesktopMouseDrag ( int offsetX, int offsetY ) : void
ExecuteJavaScript ( Browser aBrowser, string JavaScript ) : object
GetAttributeFromNode ( string Attribute ) : string
GetChildren ( string Locator, LocatorType aLocatorType, ControlType aControlType ) : List
GetChildren ( string Locator, LocatorType aLocatorType, ControlType aControlType, ControlAccess access ) : List
HasChildren ( ) : bool
HasChildrenWithXpath ( string xpath ) : bool
Highlight ( Browser aBrowser ) : void
InjectJSInBrowser ( Browser aBrowser, string JavaScript ) : object
InnerHtml ( Browser aBrowser ) : string
OuterHtml ( Browser aBrowser ) : string
ScrollToElement ( ) : Point
SendKeys ( string text ) : void
Submit ( ) : void
WaitForChildren ( int maxTimeout ) : List
WaitForChildren ( string xpath, int maxTimeout ) : List

Private Methods

Method Description
SeleniumWebControls ( IWebElement aWebElement, ControlType aControlType ) : System
SeleniumWebControls ( IWebElement aWebElement, ControlType aControlType, ControlAccess access ) : System
WaitForVisible ( ) : void

Method Details

Click() public method

public Click ( ) : void
return void

DesktopMouseClick() public method

public DesktopMouseClick ( ) : void
return void

DesktopMouseClick() public method

public DesktopMouseClick ( int offsetX, int offsetY ) : void
offsetX int
offsetY int
return void

DesktopMouseDrag() public method

public DesktopMouseDrag ( int offsetX, int offsetY ) : void
offsetX int
offsetY int
return void

ExecuteJavaScript() public method

public ExecuteJavaScript ( Browser aBrowser, string JavaScript ) : object
aBrowser Browser
JavaScript string
return object

GetAttributeFromNode() public method

public GetAttributeFromNode ( string Attribute ) : string
Attribute string
return string

GetChildren() public method

public GetChildren ( string Locator, LocatorType aLocatorType, ControlType aControlType ) : List
Locator string
aLocatorType LocatorType
aControlType ControlType
return List

GetChildren() public method

public GetChildren ( string Locator, LocatorType aLocatorType, ControlType aControlType, ControlAccess access ) : List
Locator string
aLocatorType LocatorType
aControlType ControlType
access ControlAccess
return List

HasChildren() public method

public HasChildren ( ) : bool
return bool

HasChildrenWithXpath() public method

public HasChildrenWithXpath ( string xpath ) : bool
xpath string
return bool

Highlight() public method

public Highlight ( Browser aBrowser ) : void
aBrowser Browser
return void

InjectJSInBrowser() public method

public InjectJSInBrowser ( Browser aBrowser, string JavaScript ) : object
aBrowser Browser
JavaScript string
return object

InnerHtml() public method

public InnerHtml ( Browser aBrowser ) : string
aBrowser Browser
return string

OuterHtml() public method

public OuterHtml ( Browser aBrowser ) : string
aBrowser Browser
return string

ScrollToElement() public method

public ScrollToElement ( ) : Point
return Point

SendKeys() public method

public SendKeys ( string text ) : void
text string
return void

Submit() public method

public Submit ( ) : void
return void

WaitForChildren() public method

public WaitForChildren ( int maxTimeout ) : List
maxTimeout int
return List

WaitForChildren() public method

public WaitForChildren ( string xpath, int maxTimeout ) : List
xpath string
maxTimeout int
return List